Home > Online Product Documentation > Table of Contents > Updating DOM Tree Structures
To update the DOM tree for an XML document, click the Tree tab at the bottom of the window that contains the document.
While you are editing, if the display does not appear to correctly represent the current tree, click
Refresh
. If you want to perform a certain action and Stylus Studio has grayed out the button for that action, try clicking
Refresh first.
To save your file, select File > Save from the Stylus Studio menu bar or click Save in the Stylus Studio tool bar.
This section discusses the following topics:
To expand a tree so that you can see all the nodes in the tree, click the root node and then press the asterisk (
*) key in the numeric key pad. To expand any particular node, click that node and press
* in the numeric key pad.
The default tree view of your document does not include nodes that contain only blank spaces, line feeds, or tabs. To toggle between the default view and a view that does display all nodes, click
White Space
in the Stylus Studio tool bar. This view is most helpful when you are operating on the DOM and need to know the exact structure of the tree.
Along the left side of the window that contains your DOM tree, there are buttons that represent the types of nodes you can add to your document. The procedure for adding a node is similar for all types of nodes.
Alternative: To add a child element, press Ctrl+E. To add a sibling element, press Ctrl+Shift+E.
If your XML document specifies a DTD, Stylus Studio displays a list of the elements that you can add at that location. If your document is associated with an XML Schema or does not specify a DTD, Stylus Studio prompts you to specify the name of the new element.
Along the left side of the window that contains your DOM tree, there are buttons that represent the types of nodes you can add to your document. The procedure for deleting a node is similar for all types of nodes.
Along the left side of the window that contains your DOM tree, there are buttons that represent the types of nodes you can add to your document. The procedure for moving a node is similar for all types of nodes.
Alternative: Drag the node to its new location.
Along the left side of the window that contains your DOM tree, there are buttons that represent the types of nodes you can add to your document. The procedure for renaming a node is similar for all types of nodes.
To change the value of a node: