Re: [xml] XPath with default namespace

On Thu, Jul 19, 2001 at 10:28:39PM -0500, Charlie Bozeman wrote:
Thanks for the info, I got it working with the default namespace. One
more thing, neither xmlXPathEval nor xmlXPathCompiledEval return NULL
when they don't find the desired expression. Am I correct to assume this
is because even an empty node set is a valid object?


Do I need to check
the node set value's nodeNr to determine if it is empty or is there a
better mechanism.

  yes ... and don't forget to free the object too.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine
Sep 17-18 2001 Brussels Red Hat TechWorld

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]