[xml] =?ISO-8859-1?Q?libxml=20parses=20and=20serializes=20=22invalid=22=20xml=3F?=



Hello List,

when we parse

<?xml version="1.0" encoding="iso-8859-1"?>
<root xmlns="xmlns.4commerce.de/master-namespace">
   <elt xmlns=""/>
   <bad:elt xmlns:bad=""/>
</root>

and directly serialize, we get:

<?xml version="1.0" encoding="iso-8859-1"?>
<root xmlns="xmlns.4commerce.de/master-namespace">
   <elt xmlns=""/>
   <elt xmlns:bad=""/>
</root>

Thus x -> xmlDocDumpMemory(xmlParseFile(x),.,.) is not
identitiy on semantcis of the document, since it rebinds
the second <elt> from null to master-namespace!!!

Anyway: as far as I know
(http://www.w3.org/TR/1999/REC-xml-names-19990114/#dt-NSName -
2nd definition)

<bad:elt xmlns:bad=""/> is not even allowed.

Should this generate a parser error?

Should i file a bug report?


Boris




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