Ben Reichelt's Weblog

Sponsors

The Lounge

Wicked Cool Jobs

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Fun with xsd.exe

[Advertisement]

Comments

Larry Wanzer wrote re: Fun with xsd.exe
on Fri, Feb 11 2005 6:46 AM
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.
ben wrote re: Fun with xsd.exe
on Fri, Feb 11 2005 7:46 AM
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!
JosephCooney wrote re: Fun with xsd.exe
on Sat, Feb 12 2005 2:57 AM
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.
ben wrote re: Fun with xsd.exe
on Sat, Feb 12 2005 4:00 PM
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!
TrackBack wrote More serialization
on Tue, Mar 1 2005 7:17 PM
Devlicio.us