List Info

Thread: XPath errors (wrong XPath expression, etc) processing




XPath errors (wrong XPath expression, etc) processing
user name
2006-09-19 13:39:45
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
XPath errors (wrong XPath expression, etc) processing
user name
2006-09-19 14:14:44
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
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )