Any tools to generate an XSD schema from an XML instance document?

The Microsoft XSD inference tool is a good, free solution. Many XML editing tools, such as XmlSpy (mentioned by @Garth Gilmour) or OxygenXML Editor also have that feature. They're rather expensive, though.

BizTalk Server also has an XSD inferring tool as well. Edit: I just discovered the .net XmlSchemaInference class, so if you're using .net you should consider that.

Wow, months later you pointed me to a great solution to do a quick XDR to XSD conversion! Thanks! – bethlakshmi Feb 25 '09 at 22:55 It was hard for me to find a download for this tool (xsd.

Exe), but it was already on my system in C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin. Just thought I would share in case that helps anybody. – oob Jan 3 at 6:04.

You can use an open source and cross-platform option: inst2xsd from Apache's XMLBeans. I find it very useful and easy. Just download, unzip and play (it requires Java).

Great tip, that really helped me a lot, thx! – IAdapter Jun 26 '09 at 14:16.

Trang is the best option here. Open source and cross platform (although Java is required) From the Trang Website: Trang converts between different schema languages for XML. It supports the following languages RELAX NG (XML syntax) RELAX NG compact syntax XML 1.0 DTDs W3C XML Schema A schema written in any of the supported schema languages can be converted into any of the other supported schema languages, except that W3C XML Schema is supported for output only, not for input.

Trang can also infer a schema from one or more example XML documents. Download Link.

Trang is also the tool integrated into OxygenXML to do its XSD inference from one or more XMl docs. At first attempt here it seems to work well. – locster Jun 4 '10 at 9:30.

If you have . Net installed, a tool to generate XSD schemas and classes is already included by default. For me, the XSD tool is installed under the following structure.

This may differ depending on your installation directory. C:\Program Files\Microsoft Visual Studio 8\VC>xsd Microsoft (R) Xml Schemas/DataTypes support utility Microsoft (R) . NET Framework, Version 2.0.50727.42 Copyright (C) Microsoft Corporation.

All rights reserved. Xsd. Exe - Utility to generate schema or class files from given source.Xsd.

Exe . Xsd /classes|dataset /e: /l: /n: /o: /s /uri: xsd. Exe .

Dll|. Exe /outputdir: /type: ... xsd. Exe .

Xml /outputdir: xsd. Exe . Xdr /outputdir: Normally the classes and schemas that this tool generates work rather well, especially if you're going to be consuming them in a .

Net language I typically take the XML document that I'm after, push it through the XSD tool with the /o: flag to generate a schema (xsd) and then push the xsd file back through the tool using the /classes /L:VB (or CS) /o: flags to get classes that I can import and use in my day to day . Net projects.

If all you want is XSD, LiquidXML has a free version that does XSDs, and its got a GUI to it so you can tweak the XSD if you like. Anyways nowadays I write my own XSDs by hand, but its all thanks to this app. liquid-technologies.com.

Altova XmlSpy does this well - you can find an overview here.

If you are working in the java world - intelliJ idea has also extensive xml support, including xsd generation and samle xml from xsd generation, and with plugins you can get xslt debuggers. - especially nice if you plan to use tools such as jaxb afterwards.

There also is XML schema learner which is available on Github. It can take multiple xml files and extract a common XSD from all of those files.

Online tools to generate schemas from XML documents have been developed, including: XML Schema Generator: paste XML document into a textarea. Flame-Ware XML 2 XSD: upload an XML file. BackOffice Associates: registration required.

The XML Schema Generator creates a fairly basic, well-organized, easily adapted schema. The Flame-Ware site generates a schema encumbered with Microsoft namespaces. The first two did not validate using the following schema validation tool: http://www.validome.org/grammar/validate/ I did not try the last tool.

And here is a tool for testing to see if XML files conform to a schema: http://tools.decisionsoft.com/schemaValidate/ Note: The Microsoft . NET Framework v4.5, which includes XSD. Exe, does install under Windows XP.

Also, XSD. Exe is not platform independent; it might not run under WINE.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions