[xml] c14n: "xmlns:xml" is removed



Hi,

the c14n-code of libxml2 2.6.22 (and maybe older versions too) seems to omit the
declaration of the default "xml" namespace.
I tested with libxml2 2.6.9 and the namespace declaration is currectly written to
the c14n document:

$ cat test.xml
<?xml version="1.0" encoding="utf-8"?>
<Root xmlns:xml="http://www.w3.org/XML/1998/namespace"; xml:space="preserve"/>

libxml2 2.6.9
$ testC14N --exc-with-comments ./test.xml
<Root xmlns:xml="http://www.w3.org/XML/1998/namespace"; xml:space="preserve"></Root>

libxml2 2.6.22
$ testC14N --exc-with-comments ./test.xml
<Root xml:space="preserve"></Root>

Is there any way to make libxml2 2.6.22 write the "xmlns:xml" attribute?

Thanks,
  Joachim

-- 
Joachim Bauch, struktur AG
Download icoya OpenContent GPL for FREE!       visit http://dl.struktur.de/ <-

Attachment: signature.asc
Description: OpenPGP digital signature



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