S
suzy
i have some xml like this:
<departments>
<department name="finance">
<employee name="tom hanks" age="23"/>
<employee name="tom selleck" age="43"/>
</department>
<department name="admin">
<employee name="nicole kidman" age="33"/>
<employee name="tom cruise" age="44"/>
<employee name="harrison ford" age="42"/>
<employee name="nicholas cage" age="23"/>
</department>
</departments>
i want to loop through each "department" and then loop through each of its
corresponding "employees" picking of the attribute values. how can i do
this in .net using the xpathnavigator and xpathnodeiterator objects. i have
managed to retrieve the department name, but i am stuck trying to get
information out the its children.
many thanks.
<departments>
<department name="finance">
<employee name="tom hanks" age="23"/>
<employee name="tom selleck" age="43"/>
</department>
<department name="admin">
<employee name="nicole kidman" age="33"/>
<employee name="tom cruise" age="44"/>
<employee name="harrison ford" age="42"/>
<employee name="nicholas cage" age="23"/>
</department>
</departments>
i want to loop through each "department" and then loop through each of its
corresponding "employees" picking of the attribute values. how can i do
this in .net using the xpathnavigator and xpathnodeiterator objects. i have
managed to retrieve the department name, but i am stuck trying to get
information out the its children.
many thanks.