I have a chunk of xml data that's coming out of a database that I need to generate an xsd for. Got it all working using xsd.exe but all the elements are showing up as string, even things like 2079.0200. How do I get xsd.exe to guess at types? Would the XmlSchemaExporter class be able to do this?
The issue here is that Visual Studio is generating the xsd that I want (with decimal types etc) when I use the XML --> Create Schema command, but I don't want to have to do this by hand. I'm setting up a process that takes in a chunk of xml and generates an XSD. But it needs to have more types than just "string".
Related, but don't know if it's a solution yet (XmlSchemaInference class): http://stackoverflow.com/questions/74879/any-tools-to-generate-an-xsd-schema-from-an-xml-instance-document