I have two elements with the same attribute, but with different child node values. Can I request a search for a specific element that matches the attribute, as well as a child value of node. To be specific, this is an example xml that I use for a query (each element in the original xml has more than 10 child nodes).
<Book size="2"> <Title>abc</Title> <Price>10</Price> </Book> <Book size="2"> <Title>xyz</Title> <Price>20</Price> </Book> <Book size="4"> <Title>Harry</Title> <Price>10</Price> </Book>
So now I want to find the Book element that has @size = "2" and Title = xyz .
Is this possible with the SelectSingleNode method? If not how to request it?
thanks
source share