CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Ben Reichelt's Weblog


Fun with xsd.exe

This post has moved to a new server.

View it at:

Fun with xsd.exe

.

(http://benreichelt.net/blog/2005/2/10/Fun-with-xsdexe/)



Comments

Larry Wanzer said:

If you ever have xsd.exe choke while generating your schema because it can't handle something in your xml I've found that XmlSpy can usually do the trick (if you have access to it). I've had xsd.exe complain about some of our companies xml before and had to go this route (the xml was valid), but overall xsd.exe is very powerful.
# February 11, 2005 6:46 AM

ben said:

Thanks for the tip, I know that the error messages you get when dealing with serialization can be aa bear sometimes, its nice to know stuff like this in advance!
# February 11, 2005 7:46 AM

JosephCooney said:

The Xml Tools Team page on GotDotNet http://www.gotdotnet.com/team/xmltools/ has some other interesting XML tools you might like to check out. As far as I know the XSD - inferencing code in XSD.exe is based on work the dataset team had to do to infer the schema of datasets. If XSD.exe has trouble infering the schema (as Larry above noted it sometimes does) you might want to try the XSD inference tool.
# February 12, 2005 2:57 AM

ben said:

Joseph, that tool worked like a charm! Larry was right, the code produced by xsd.exe needed some manual modifications by me in order to make it work, but with infer.exe, the schema is more accurate and then I use xsd.exe to make a class file from that schema, and it worked out of the box! awesome!
# February 12, 2005 4:00 PM

TrackBack said:

# March 1, 2005 7:17 PM
Check out Devlicio.us!

Our Sponsors

Free Tech Publications