The XSD Viewer allows you to view the structure defined by an XML schema as a tree, providing a graphical representation of the element content models and element attributes.
You can open schema (.xsd) files in the XML Editor by right-clicking them and choosing Open With | XSD Viewer. At the top level, the folder icon labeled schema contains nodes for each element defined in the schema. You can expand each element node view the element's content model (element inclusions) and attributes. Depending on the preference settings, the viewer can also display element facets.
The XSD Viewer adds a Schema item to the Eclipse menu bar with the additional operations described in this table.
Schema menu operations
Menu item | Description |
---|---|
Generate Instance Document | Active when an XML schema is open in the editor with no unsaved changes. Generates a sample document instance that contains the elements and attributes defined in the schema. For details, see Generating an Instance Document for an XML Schema. |
Extract XML Schema Subset | Active when an XML schema is open in the editor with no unsaved changes. Prunes the schema to include only the element and attribute definitions that are required to define a specified root element. For details, see Pruning an XML schema. |
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com