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?

  yes,

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

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com




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