1

Topic: Parsing XML

Question.
Is entering XML with such structure.
<an ID = "1">
<b> 1 </b>
<b> 2 </b>
</a>
<an ID = "2">
<b> 3 </b>
</a>
The relation "Parent" is necessary  XML in such a manner that, "Successor" has not been lost, that is to "ID=1" there was data with values from this tags "<b> 1 </b>", "<b> 2 </b>" and to "ID=2" were the data "<b> 3 </b>".
Complexity consists that if to use "nodes ('//b ')" that to address to a tag "<an ID =" 1 ">" does not turn out if to use
"nodes ('//a ')" then it does not turn out to leave communication between "the Parent" tag and a tag "Successor".
Probably that that missed at lining of logic of the decision, do not judge strictly)

2

Re: Parsing XML

hyuston wrote:

if to use "nodes ('//b ')" that to address to a tag "<an ID =" 1 ">" does not turn out

hyuston wrote:

if to use "nodes ('//a ')" then does not turn out to leave communication between "the Parent" tag and a tag "Successor".

Both statements are incorrect. What forces you so to think?