PDA

View Full Version : nested xml / complex xml, cant get associations to work



Real Chan
25 Jul 2011, 5:51 PM
I got a xml like this:


<persons>
<country>us<country>
<person>
<name>jack</name>
<age>40</age>
<son>
<children>
<name>bill</name>
<age>10</age>
</children>
<son>
</son>
<children>
<name>mark</name>
<age>14</age>
</children>
</son>
</person>
</persons>

How can I know how many sons one person have?
how to get the count of '</son>' node for each person?