There is a xml document with content below:
<Bookshop>
<Book id="isbn-001"/>
<Pen id="num-001" />
</Bookshop>
I want to search the child nodes through the special id value, and the child node type is uncertain.
If the child nodes with same name/type, we can do it:select child with given attribute
XmlNodeList nodelist = doc.SelectNodes("parent/child/node[@attribute='True']");
But in above xml, the child nodes aren't same name/type, should I do a loop method? Is there any select nodes method I can use. Thanks