[Mono-dev] corcompare patch to generate well-formed XML
Atsushi Eno
atsushi at ximian.com
Wed Feb 22 03:48:28 EST 2006
Hello,
After hearing from Gonzalo that buggy XmlTextWriter (by design)
outputs invalid XML which caused corcompare breakage, I created
a corcompare patch and an XmlWriter wrapper that avoids invalid
XML output (such as <field name="vbBack" attrib="32854"
fieldtype="System.String" value="" />).
XmlTextReader is similarly buggy (by design) to accept such invalid
character references by default (unless you set Normalization=true),
so as long as those api-info are fed only to corcompare itself,
there won't be problem.
(If you try xmllint against existing masterinfos, you will
understand what is the problem I am talking about.)
Note that this WellFormedXmlWriter.cs is not for general use (yet)
since it handles only WriteString().
If no objection I'll commit them cpl days later.
Atsushi Eno
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: well-formed-corcompare-output.patch
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060222/7485d81b/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: WellFormedXmlWriter.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060222/7485d81b/attachment-0001.pl
More information about the Mono-devel-list
mailing list