Jump to content

Recommended Posts

Posted

I am working with an XML file that has parents with multiple children with the exact same name. Each child is selected by the following:

SelectSingleNode “/Parent/abc [n]”

Where n is the child number. 

SelectSingleNode “/Parent/abc [0]” would select the first occurance of “/Parent/abc”

I just need to know how many of these child nodes, “abc” exist. 

I dont need this number to simply get to the last node, i dont even need the value there, I just need to know how many of the child nodes exist.

There will sometimes be other child nodes with different names under the same parent.

Thanks in advance.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...