[xml] Problem with XPath expression

Date view Thread view Subject view Author view

From: Justin Patterson (justinp@broadjump.com)
Date: Fri Feb 25 2000 - 20:22:31 EST


Hello,

Can anyone tell me what's wrong with the following code? I couldn't find
much info about using XPath on the xmlsoft.org site, but from w3.org it
looks like this is a valid request:

xmlXPathObject* pObj = xmlXPathEvalExpression(
                "/STRUCT/UINT[@NAME=\"my_uint\"]",pCtxt);

When the code is executed I get an error:

Error xpath.c:1093: Invalid operand
/STRUCT/UINT[@NAME="my_uint"]
                            ^
Is this my problem or libxml's?

Thanks,
-Justin

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:05 EDT