On 31/01/11 13:34, Alberto Massari wrote:
The XPath engine doesn't accept a Document node as context, only Element
nodes. So you must either use XPath expressions that start from the
root, or relatively to the document root. Is your code working if you
specify doc->getDocumentElement() as context and "." as query?

I followed your suggestion and XPath expressions work well for me now.

Thanks!

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org

Reply via email to