This command generates a new DTD or Schema from an XML document (or from a set of documents in the project window).
Use this function when you are defining a new schema or DTD, as it is often helpful to use an example XML document as a starting point.
If you are targeting one of the modern schema kinds (e.g. XSD or BizTalk), XML Spy can automatically detect datatypes (such as date, time, number, URI, etc.) being used in your XML documents and create the corresponding restrictions in the schema.
XML Spy will also optionally detect typical enumeration scenarios, where an element or attribute can only contain items from a predefined list of values. You can also decide how to represent complex elements and how elements that only appear only once should be treated.
This command normally operates on the active main window, but you can also use the Generate DTD/Schema command on any file, folder, or group of files in the active project window.
Previous
Top
Next