Re: [xml] Weird parser problem (more info)



More information ... it is in the tree (prints when I dump it).

The function xmlNodeListGetString fails because the type is zero rather than 1-20 (XML_ELEMENT_NODE thru XML_XINCLUDE_END).

If I traverse manually it finds it ...

Weirdness

At 01:22 PM 8/23/2004, Daniel Veillard wrote:
On Mon, Aug 23, 2004 at 11:31:34AM -0700, Eric S. Eberhard wrote:
> I have been using libxml2 for a while with no problems ... until and
> end-user
> reported the following:
>
> If their doc contains a tag "text"  (e.g. <text>hello</text>) they cannot
> get the value of the tag.
>
> I put some debug in my code, and there is no node for "text? --> simply not
> there!

  No idea, everything seems to work here

paphio:~/XML -> xmllint tst.xml
<?xml version="1.0"?>
<text>hello</text>
paphio:~/XML -> xmllint --shell tst.xml
/ > ls
---        1 text
/ > cd text
text > ls
t--        5 hello
text >

  Specify what doesn't work and provide a reproductible test case please,
c.f. http://xmlsoft.org/bugs.html

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/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml

Eric S. Eberhard
(928) 567-3727          Voice
(928) 567-6122          Fax
(800) 569-1122 Denver Office (I am never there, you can leave a message)

928-301-7537 -- you may call any time day or night, I turn it off when I sleep :-) Please try to use a land line first (reception often poor).



http://www.vicspdi.com

Completely updated web site of personal pictures with many new pictures! Includes horses, dogs, Corvairs, and more.

http://www.vicspdi.com/ourpics/index.html




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