XML Editor

The Sybase XML editor is a text-based XML editor.

Several file types such as .xml, .xsl, .xsd, and .wsdl are associated with the XML editor. To open files of other types, create a file association.

When opened in the XML editor, the XML source displays with syntax highlighting, and an Outline view displays a tree representation of the XML element structure. You can configure the display options in the preference settings.

The XML editor supports all the functionality of the Eclipse text editor. You can use the Edit and Navigate menu items, such as Cut, Copy, Paste, and Go To Last Edit Position. The XML editor also adds an XML item to the Eclipse menu bar with the operations described in the following table.

Table 1. XML menu operations
Menu item Description
Format Reformats the XML source. Compact removes all semantically empty white space. Pretty Print reformats the content with line breaks after each tag and indentation of nested tags to reflect their level of nesting within the root element.
Check Well Formedness Verifies that the source text meets the criteria for well-formed XML.
Validate XML For documents that specify an XML schema, validates the structure against the schema rules.
Clear Validation Problems Clears validation errors from the Problems view.
Clear All XML Markers Removes items from the Problems view that were added by the XML editor.
Generate XML Schema Active when a well-formed XML document is open in the XML editor with no unsaved changes. Generates an XMl schema that matches the structure of the document.
Generate Instance Document Activve when an XML schema is open in the XML editor with no unsaved changes. Generates a sample document instance that contains the elements and attributes defined in the schema.
Extract XML Schema Subset Active when an XML schema is open in the XML 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.
Related tasks
Configuring XML File Associations

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.