Re: [xml] libxml looses namespace info

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Nov 25 1999 - 13:22:47 EST


On Wed, Nov 03, 1999 at 07:13:38PM +0100, Joerg Wittenberger wrote:
>
> Hi,
>
> I've build the following xml document (with libxml, naturally), wrote
> it out and parsed in back again. Easy to spot, the namespace info is
> being lost. Anything I could have done wrong or is this a bug?
>
> version build:
> <?xml version="1.0"?>
> <prefix:doc xmlns:prefix="href" xmlns:prefixi="hrefi">
> <prefixi:a p="3">
> <prefixi:b p="3"/>
> </prefixi:a>
> </prefix:doc>
>
> document after reading via xmlParseFile:
> <?xml version="1.0"?>
> <prefix:doc xmlns:prefix="href">
> <a p="3">
> <b p="3"/>
> </a>
> </prefix:doc>
>
> where is my prefixi????

  Hi Joerg,

Sorry it seems i completely forgot about your bug report. I was browsing
the list archive to find old bug reports and noticed yours. I noticed
that the current version seems to correct the problem:

~/XML -> cat ns.xml
<?xml version="1.0"?>
<prefix:doc xmlns:prefix="href" xmlns:prefixi="hrefi">
  <prefixi:a p="3">
    <prefixi:b p="3"/>
  </prefixi:a>
</prefix:doc>

~/XML -> ./tester ns.xml
<?xml version="1.0"?>
<prefix:doc xmlns:prefix="href" xmlns:prefixi="hrefi">
  <prefixi:a p="3">
    <prefixi:b p="3"/>
  </prefixi:a>
</prefix:doc>
~/XML ->

 I must admit that I don't remember fixing it :-) it was probably
corrected as a side effect of another bug fix !

  So try to grab the version from the CVS bases (Gnome or the
one on dev.w3.org), and check if you still have troubles.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe.
----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:53 EDT