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

Reply via email to