Re: [xml] Newbie Help
- From: Daniel Veillard <veillard redhat com>
- To: Bryan Christ <bryan christ hp com>
- Cc: xml gnome org
- Subject: Re: [xml] Newbie Help
- Date: Mon, 9 Aug 2004 17:14:45 -0400
On Mon, Aug 09, 2004 at 03:44:47PM -0500, Bryan Christ wrote:
Supplying the leading / is one of the permutations of the expression
that I have already tried. When I do this, I *do not* get the error
messages:
xmlXPathNodeCollectAndTest xpath.c:1923 : nodelist and node are NULL
However, xpath_object is still returned as NULL. According to the
documentation, even if there are no matches, shouldn't I receive back a
valid pointer to an empty list?
No, you may get NULL for an empty Nodeset. It's an optimization
which made huge difference for XSLT performances (no need to allocate/
deallocate empty lists all the time).
Daniel
--
Daniel Veillard | Red Hat Desktop team http://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]