Create XML Schema from XML Document Content

Stylus Studio® provides several utilities to convert files to XML documents — CSV, flat files, and relational ADO files can all be converted to XML with the click of a button. But the power of Stylus Studio® doesn't stop there — Stylus Studio® can just as easily generate an industry standard W3C XML Schema (or DTD) by correctly inferring an XML data model from an XML instance document. Start with HTML, and end up with XML Schema or DTD!

Auto-generating an XML Schema with Stylus Studio® is easy: just load any XML document into Stylus Studio®'s XML editor and click the Schema tab, located at the bottom of Stylus Studio®'s XML Editor as shown here:

Use your XML to generate XML Schema

When you click the Schema tab, Stylus Studio® displays the XML content model (expressed as an XML Schema or DTD) associated with your XML document, if one exists. However, if the XML document doesn't have an associated XML content model, Stylus Studio® displays a dialog box (shown here) that lets you quickly generate an XML Schema (or DTD). (For more about the Schema tab, see our section on XML editing views.)

Automatically generate XML Schema or DTD

To generate an XML Schema (or DTD), just type a name for the generated file and click OK. That's it. From the XML document you provide, Stylus Studio® correctly infers XML elements, attributes, relationships, compositor models (for example, Optional, Choice, Sequence), data type (xs:integer, xs:string, for example), element references, and so on. Of course you can further refine the generated XML Schema using our powerful XML Schema Editor.

Stylus Studio® generates complete XML Schema or DTD

In addition to generating the XML Schema, Stylus Studio® inserts the required XML code in the XML document to associate it with its newly generated XML schema, simplifying editing and validating the XML document.

Use the generated XML Schema to validate your XML documents

Use Stylus Studio®'s integrated XML Schema generator (and DTD generator) to further accelerate developing and editing well-formed, valid XML documents.

Learn About Other XML Import/Export Utilities

PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Try Stylus XML Schema IDE

Download a free trial of our award-winning XML Schema IDE today!

Learn XQuery in 10 Minutes!

Say goodbye to 10-minute abs, and say Hello to "Learn XQuery in Ten Minutes!", the world's fastest and easiest XQuery primer, now available for free!

Why Pay More for XML Tools?

With Stylus Studio® X16 XML Enterprise Suite, you get the most comprehensive XML tool suite at one incredibly low price. Value: it's just one of many reasons why smart XML developers are choosing Stylus Studio!

 
Free Stylus Studio XML Training: