Re: [xml] Newbie Help



Well that helps a bit, but the problem still remains that the list shouldn't return empty.  Any thoughts?

On Mon, 2004-08-09 at 16:14, Daniel Veillard wrote:
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


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