Hi, I don't think xerces-c supports Xpath. "Request type not supported" is the default print in their implementation.
You can try using Xqilla (http://xqilla.sourceforge.net/HomePage) which works on top of Xerces and support Xquery and Xpath. Xqilla needs Xerces-c v 2.8. Regards, Karuna ________________________________ From: Nuno Ferreira [mailto:[EMAIL PROTECTED] Sent: Sun 4/6/2008 11:11 PM To: [email protected] Subject: Question about XPath Hi, i'm using Xerces 3.0.0.b1 and i can't get xpath to work Basically i'm parsing a file with XercesDOMParser then i grab the stuff to a DOMDocument DOMDocument* domDoc = xdomp->getDocument(); initialise the xpath stuff DOMXPathEvaluator* xpath = (DOMXPathEvaluator*) domDoc; DOMXPathResult *xpres; and finally in a try/catch i try to get the result xpres = (DOMXPathResult *) xpath->evaluate(XMLString::transcode("packet/group/offset"), domDoc->getDocumentElement(), NULL, DOMXPathResult::ANY_TYPE, NULL); However i always get a message saying: "The requested result type is not supported". Any help? Thanks The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
