[Mono-list] question about XmlSerializer and XSD
Lluis Sanchez
lluis@ximian.com
Mon, 30 Aug 2004 19:11:44 +0200
If you are referencing types from another schema, you must import that
schema. Are you doing it? It's hard to tell what's the problem without a
complete example.
Lluis.
On dv, 2004-08-27 at 18:52, Peter Lin wrote:
> 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"
> targetNamespace="http://example.org"
> xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
> xmlns:e="http://example.org"
> jxb:version="1.0">
>
>
> 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.
>
> thanks
>
> peter
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list