I have this xml snippet:
<book id="bk102">
<author name= "Smith, john" >
<title>Test book</title>
<genre>Other</genre>
<price>30.00</price>
<publish_date>2003-10-01</publish_date>
</author>
</book>
and I am writing an xpath parser this way:
//book[@id='bk102']//book[@genre ='Other']//book[price=30.00]
I know that I can get it by using just the first query,
( //book[@id='bk102'] )
but what if I want to use the one above? I don't get anything back from selectNodes.
MSXML2::IXMLDOMNodeListPtr pXMLNodeList = NULL;
pXMLNodeList = pXMLDoc->selectNodes("//book[@id='bk102']//book[@genre ='Other']//book[price=30.00]");
Thanks in advance.