[Mono-list] question about XmlSerializer and XSD

Peter Lin Peter Lin <woolfel@gmail.com>
Fri, 27 Aug 2004 11:52:03 -0500

I just downloaded the latest release of Mono and had a few questions.
I'm currently working on a pluggable schema compiler for .NET and came
across a but in Microsoft's XmlSerializer. Here is a description of
the bug.

When a schema contains multiple namespaces, MS .NET 1.1 fails to
correctly serialize the namespace attributes. It only gets the first
one.  I used an example from JWSDP to test. Here is the namespace
declaration from itinerary.xsd from JWSDP.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

The behavior I see is MS XmlSerializer drops the additional
namespaces, but it also drops the prefix from elements.

<xsd:element name="travel" type="e:TravelType"/>

Has anyone ever tried to process a schema that uses multiple
namespaces in Mono's XmlSerializer.  Once sourceforge accepts the
project, I plan to open source my schema compiler. Most likely I will
post an alpha in a week or two.  I googled for a couple minutes to see
if others have encountered this, but couldn't find any.