Question

if I make an XML Schema; I would physically define that schema correct? Or is there a program somewhere that would create a schema for my XML file automatically? Maybe I am confused on Schemas I'm not sure.

Was it helpful?

Solution

We've used this tool to generate XSD's from example XML files: http://www.thaiopensource.com/relaxng/trang.html. Just remember that it can only be as good as the example XML, so you might have to tweak the generated schema a bit (adding repetition, etc.).

OTHER TIPS

If you already have an XML file created and want to create a schema based off of it, VS 2010 can create one for you based off of the contents of an XML file by opening your XML file in VS and clicking the "Create Schema" button. You can read more here:

http://msdn.microsoft.com/en-us/library/ms255829.aspx

Edit: XML Schemas can be written by hand or generated off of an XML file (which you can then modify by hand if you feel the need to do so)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top