Hi,
I would like to how to handle the xpath error gracefully when I use the
libxml api,
xmlXPathEvalExpression(path, xpathCtx).
If I pass a invalid path string to evaluate on the "xpathCtx", it throws the
error as below and stops there.
But I would like to handle that error gracefully and log it accordingly and
proceed with my application.
So, could anyone give me ideas on doing the same? Or is it possible to check
the xpath expr is valid or not even before
calling the libxml api.
Error and stops immd:
XPath error : Invalid expression
/roottag///[EMAIL PROTECTED]'1']
^
Thanks
Senthil
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml