Re: [xml] xmlXPathEval()



On Thu, Aug 29, 2002 at 04:11:54PM +0200, Daniel Gehriger wrote:
Q: if no node is selected by the xpath given to xmlXPathEval(), does it
return NULL or an xmlXPathObjectPtr with an empty node set ?

  NULL should only be returned in case of errors,
that means there was no object left on the interpreter stack at 
the end of the evaluation, i.e. really an error.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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