Using the XML tools, you can prune an XML schema so that it includes only the element and attribute definitions that are required to define a specified root element. Pruning a schema may speed up processing if it contains unused declarations. You can prune schemas using the XML Editor or the XSD Viewer.
To prune an XML schema:
If the schema is not open in the XML Editor or XSD Viewer, open it as described here. If the schema is already open in the XML Editor, save any changes.
If you are using the XML Editor, choose XML | Extract XML Schema Subset. If you are using the XSD Viewer, choose Schema | Extract XML Schema Subset.
Select the root element for the new subset and click OK.
The truncated schema appears in a new XML Editor window.
Generated documents are read-only and are not created in the file system. To create a persistent copy, choose File | Save As to save them to disk. You can edit the text after saving to disk.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com