Hello,
Is there any good way to process errors of compilation of
XPath
expression? I.e. in case when xmlXPathCompile() returns
NULL, is there
any way to say more than just "wrong XPath
expression"?
I'd appreciate any example..
--
Best regards,
Nikolay
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
On Tue, Sep 19, 2006 at 05:39:45PM +0400, Nikolay
Samokhvalov wrote:
> Hello,
>
> Is there any good way to process errors of compilation
of XPath
> expression? I.e. in case when xmlXPathCompile() returns
NULL, is there
> any way to say more than just "wrong XPath
expression"?
The XPath compiler gives back an error message and a
position in the
expression. Check the structured error callback in
xmlerror.h
Daniel
--
Red Hat Virtualization group http://redhat.com/v
irtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillardredhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml