Re: [xml] Weird parser problem
- From: "Eric S. Eberhard" <flash vicspdi com>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] Weird parser problem
- Date: Mon, 23 Aug 2004 15:37:24 -0700
OK --> send me the retard prize. I have (all these years) blindly
traversed the tree looking for things by name and if I find them returning
the node.
However ... I never checked the TYPE of the node.
There is a type XML_NODE_TEXT that just happens to have the name filled in
with "text" and I was returning that node, which has no children, hence no
children's type or content ...
A simple change on my part to skip those (what are they?) solved that problem.
Silly me, to think they YOUR code had bugs :-)
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]