Generate XSD

Stylus Studio® can generate an industry standard W3C XSD (or DTD) by correctly inferring an XML data model from an XML instance document. Auto-generating an XSD with Stylus Studio® is accomplished by loading any XML document into Stylus Studio®'s XML editor and clicking on the "Schema" tab, located at the bottom of Stylus Studio®'s XML editor as shown here:

Generate XSD

If an XML content model (expressed as an XSD or DTD) has already been assigned, Stylus Studio® will display the XML document's content model. However, if no XML content model has been assigned, Stylus Studio® will optionally generate an XSD (or DTD) for you as illustrated below. For more about the Schema tab, see our section on XML editing views.

Autogenerate XSD

Generating an XSD (or DTD) is easy: Just type in the file name and click OK. As you can see below, 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 XSD using our powerful XSD Editor.

viewing an XSD

Associating the XML document with an XSD

Stylus Studio® inserts the XML code required to associate the XML instance document with its newly generated XSD, so that you can easily edit and validate the XML document, as shown here — notice how in the books element, Stylus Studio has has inserted the xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xsi:noNamespaceSchemaLocation attributes which associate the XML document with the newly generated XSD.

Validate XML document against XSD

Stylus Studio®'s integrated XSD generator (and DTD generator) is a powerful, complementary XSD utility that further accelerates developing and editing well-formed, valid XML documents — download a free trial today!

Configuring the Java Runtime Engine or Java Development Kit

This page identifies the Stylus Studio modules that require Java runtime and Java compiler components, where you can download these Java components, and how to force Stylus Studio to detect new or changed Java components.

Canonicalize XML

Stylus Studio® features a handy XML canonicalizer among its many XML editing utilities, for quickly and easily converting any XML document into its canonical form (c14n), a widely-used W3C standard for normalizing XML files.

XML Schema Library

The Stylus Studio XML Schema Library provides a detailed reference of many of the world's most commonly used XML vocabularies in an easy-to-read format.

XML Unicode Encoding

Stylus Studio supports over 300 different file encodings, including UTF-8, UTF-16, EUC-JP, SHIFT-JIS, and more, alowing you to work with any XML document. Robust text editors support standard editing features, and Sense:X intelligent auto-completion.

Stylus Most Wanted

PURCHASE STYLUS STUDIO ONLINE TODAY!!

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

Buy Stylus Studio Now

Try Stylus XSD Generator

Download a free trial of our award-winning XSD Generator today!

What's New for X14?

New XQuery & Web Services Tools, Support for MySQL, PostgreSQL, HL7 EDI, Microsoft .NET Code Generation and much more!

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:
W3C Member