Try Chris Sells tool at:
http://sellsbrothers.com/tools/#XmlSerializerPreCompiler
> Below are my classes generated using XSD.EXE from XML/XSLT
>
[quoted text clipped - 13 lines]
>
> Gary
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> tImportSchema")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://mysite.com/even
> tImportSchema", IsNullable=false)]
>
[quoted text clipped - 5 lines]
>
> }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> tImportSchema")]
>
[quoted text clipped - 20 lines]
>
> }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> tImportSchema")]
>
[quoted text clipped - 9 lines]
>
> }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> tImportSchema")]
>
[quoted text clipped - 9 lines]
>
> }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> tImportSchema")]
>
[quoted text clipped - 13 lines]
>
> }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> tImportSchema")]
>
[quoted text clipped - 9 lines]
>
> }
Gary Brewer - 30 Jan 2004 15:59 GMT
Thanks, thats a brilliant tool and does the job perfect (well it tells me
whats wrong).
XSD.EXE converts XML into XSD files into class files, which is a great
feature but I would have thought that using this tool and using
serialisation would go hand in hand.
The fact that I cannot deserialise something into my generated class is
slightly annoying (an the error message in VS.NET is even more crazy!)
Will this be fixed in a new version or is there a reason for this?
Thanks,
Gary Brewer
> Try Chris Sells tool at:
> http://sellsbrothers.com/tools/#XmlSerializerPreCompiler
[quoted text clipped - 17 lines]
> >
> > Gary
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> > tImportSchema")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://mysite.com/even
> > tImportSchema", IsNullable=false)]
> >
[quoted text clipped - 5 lines]
> >
> > }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> > tImportSchema")]
> >
[quoted text clipped - 22 lines]
> >
> > }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> > tImportSchema")]
> >
[quoted text clipped - 9 lines]
> >
> > }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> > tImportSchema")]
> >
[quoted text clipped - 9 lines]
> >
> > }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> > tImportSchema")]
> >
[quoted text clipped - 13 lines]
> >
> > }
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://mysite.com/even
> > tImportSchema")]
> >
[quoted text clipped - 9 lines]
> >
> > }