Re: [xml] Newbie Help



Hi Bryan,

do you use namespaces in your xml file. If so, that one needs to be registered
first, before doing queries. In the future it is helpful to add a snipped of the
XML files as well, when asking.

Stefan

Bryan Christ wrote:
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



------------------------------------------------------------------------

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml

-- 
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04251 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -

Attachment: kost.vcf
Description: Vcard



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