Re: [xml] XPath expression returning unexpected nodeset?



On Tue, Jul 20, 2004 at 01:19:14PM +0200, Eddy Steevens wrote:
[...]
NodeSet->nodeTab[2] contains:
 <data>
   <item1>x3</item1>
   <item2>y3</item2>
 </data>

I'dd expected to see 3 elements in the nodeset each containing one data 
element.  Or only 1 element in the nodeset containing all 3 data elements.

What's wrong here?  Probably it is just me being plain stupid.

  you get back an arry of xmlNodePtr, pointers comming from the tree.
There is no copy, it's live pointers to the document. I assume you're
misunderstanding that or making mistake when printing.

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]