[Mono-devel-list] Re: On Being Bug Compatible with .NET Framework

Atsushi Eno atsushi at ximian.com
Thu Jul 15 22:26:38 EDT 2004

I have to follow up some things for mono users;

> Hello,
>  > "This is by design. We allow XML declaration in XML fragments because
>  > of the encoding attribute. Otherwise the encoding information would
>  > have to be transferred outside of the XML and manually set into
>  > XmlParserContext."
> Hmm, so the use case would be to parse external entity that is however
> usually done in DTD parser (black box). I wonder if there is other
> use cases that need this design. But it sounds rational, so I think
> I'll fix this problem.

That XML declaration matter is technically no prolem - even if
you are using "new XmlTextReader (Stream, XmlNodeType, 
XmlParserContext)", you don't have to worry that the input might not
be parsed with the declared encoding. A wrapper stream is there that
detects encoding declaration from the stream.

Am also wondering if there should be both "MS compatibility mode" and
"Mono improved mode" respectively, by the importance of the bugs.

For binary compatibility, it would be provided by configuration
settings (that would be nasty code since inside System.Xml we cannot
use ConfigurationSettings class in terms of the build order).

Atsushi Eno

More information about the Mono-devel-list mailing list