I have an xml structure as follows ("cant change this")
<root>
<children>
<child>
<name>name1</name>
<children>
<name>namea</name>
<name>nameb</name>
</children>
</child>
<child>
<name>name2</name>
<children>
<name>namec</name>
<name>named</name>
</children>
</child>
</children>
</root>
I want to use xpath in order to select the main child names i.e name1 and name2 only
How do I go about doing this as .SelectNodes(//root//children//child//name) will return 6 results and not 2.
