XML Editor

The Sybase XML Editor is a text-based XML editor that supports syntax coloring, pretty printing, validation, and generation of schemas from well-formed XML, and sample instance documents from a schema.

You can open XML files in the XML Editor by right-clicking them and selecting Open With | Sybase 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 as described in Configuring XML File Associations.

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 controls such as Cut, Copy, Paste, and Go To Last Edit Position. For more information on these controls, see Editors under Concepts in the Workbench User Guide. The XML Editor also adds an XML item to the Eclipse menu bar with the operations described in the following table.

XML menu operations

Menu itemDescription
FormatReformats the XML source. Format | Compact removes all semantically empty white space. Format | 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 FormednessVerifies that the source text meets the criteria for well-formed XML. For details, see Validating an XML Document Instance.
Validate XMLFor documents that specify an XML schema, validates the structure against the schema rules. For details, see Validating an XML Document Instance.
Clear Validation ProblemsClears validation errors from the Problems view.
Clear All XML MarkersRemoves all entries 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. For details, see Generating an XML Schema from a Document Instance.
Generate Instance DocumentActive 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. For details, see Generating an Instance Document for an XML Schema.
Extract XML Schema SubsetActive 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. For details, see Pruning an XML schema.

Editors

Web xml Editor

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com