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


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!

Attend a Live Webinar This Week!

Learn about Stylus Studio's unique features and benefits in just under an hour. Register for the Stylus Studio QuickStart Training WebCast!

Ask Someone You Know

Does your company use Stylus Studio? Do your competitors? Engineers from over 100,000 leading companies use Stylus Studio, and now you can ask someone from your own organization about their experiences using Stylus Studio.

Free Stylus Studio XML Training: