Home >
Online Product Documentation >
Table of Contents >
XML Editor Schema Tab
XML Editor Schema Tab
To display the XML editor, open an XML document, or select
File >
New >
XML Document from the Stylus Studio menu bar. At the bottom of the XML editor window, click the
Schema tab.
The
Schema tab of the XML editor displays a collapsible and expandable tree representation of the schema for the current XML document. In this view, you can add any kind of node allowed in a schema.
Fields
Query
Type a query that you want to run on this XML document. Click
Refresh Query
to run the query. Stylus Studio displays the results of the query in the
Query Output pane. Click the down arrow to select a previously defined query or define a new query.
Buttons for Editing
The buttons along the top of the
Schema tab allow you to edit the tree. Hover help is available to determine what each button does.
Refresh refreshes the screen display.
Delete Node deletes the selected node.
Change Name allows you to change the name of the selected node.
Move Up moves the selected node to be before its preceding sibling.
Move Down moves the selected node to be after its following sibling.
Toggle Display of white space toggles the display of white space in the tree.
Validate Document analyzes the document against this DTD.
Change Font allows you to choose the display font.
Open Schema opens the schema, if there is one, for the XML document.
Refresh Query executes the selected query.
Buttons for Adding Nodes
Buttons in the left tool bar of the
Schema tab allow you to define elements, entities, and comments in the schema. For a description of the buttons, see
DTD Schema Editor Tree Tab and
XML Schema Editor Tree Tab.
To add a node, select a node that is already in the DOM tree, and then click the button for the type of node you want to add. Stylus Studio adds the new node relative to the node you selected.
For More Information
What Is a DTD?
Defining Elements in DTDs
About Modifiers in Element Definitions in DTDs
What Is an XML Schema?
Creating an XML Schema in Stylus Studio
About XML Schema Properties