Home >Online Product Documentation >Table of Contents >Creating XML Schema from an XML Document
There are two ways to create XML Schema from an XML document:
Both methods allow you to specify the URI for the generated files (if an XML document has multiple namespaces defined for it, Stylus Studio creates a separate XML Schema associated with each namespace).
Use this procedure when you want to create an XML Schema based on the content of an existing XML document.
The Document Wizards dialog box appears.
The Convert XML to XML Schema dialog box appears.
Stylus Studio creates the XML Schema file and opens it in the XML Schema Editor.
The Create Schema or DTD dialog box appears.
The Output File field becomes active.
The XML Schema is created. If you do not specify a complete URL, the schema is written to the same location as the XML document from which it was created.
Use this procedure to open the new XML Schema created using the Create Schema from XML Content feature (or to open the XML Schema associated with any active XML document).
The XML Schema appears in the XML Schema Editor.