Hi,

       The attached files return an encoding error on parsing. The xmlfile
contains a reference to an entity in UTF-16 format, and ideally there should
be no problems. On investigating I found that the problem occurs due to the
changes made for bug fix #440159
(http://bugzilla.gnome.org/show_bug.cgi?id=440159) ,SVN Revision
3618(http://svn.gnome.org/viewvc/libxml2/trunk/encoding.c?r1=3545&r2=3618).
If I revert the changes the parsing happens properly and there is no error. 

 

Regards

Ashwin

 

Regards

Ashwin Sinha 

<!DOCTYPE foo [
<!ELEMENT foo (root*)>
<!ELEMENT root EMPTY>
<!ENTITY utf16b SYSTEM "utf16b.xml">
<!ENTITY utf16l SYSTEM "utf16l.xml">
]>

<foo> &utf16b; &utf16l; </foo>
þÿ<?xml version='1.0' encoding='UTF-16'?>
<root/>
ÿþ<?xml version='1.0' encoding='UTF-16'?>
<root/>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to