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

Atsushi Eno atsushi at ximian.com
Thu Jul 15 14:19:54 EDT 2004


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.

BTW MSDN documentation should be then fixed since it explains that
if XmlNodeType is Element then the contents must be:

"Any valid element content (for example, any combination of elements, 
comments, processing instructions, CDATA sections, text, and entity 
references)."

It also applies to ECMA 335 specification.

Atsushi Eno




More information about the Mono-devel-list mailing list