AlexFM
asked on
Enumerating XML child nodes (2)
<List>
<Employees>
<Name>Peter</Name>
<Name>John</Name>
</Employees>
<Managers>
<Name>Bill</Name>
</Managers>
</List>
I need to enumerate this XML using XMLDocuments class, but without using GetElementsByTagName method, because tag names are not unique. I need the way to enumerate XMLNode childs by name.
<Employees>
<Name>Peter</Name>
<Name>John</Name>
</Employees>
<Managers>
<Name>Bill</Name>
</Managers>
</List>
I need to enumerate this XML using XMLDocuments class, but without using GetElementsByTagName method, because tag names are not unique. I need the way to enumerate XMLNode childs by name.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.