|
Home > Online Product Documentation > Table of Contents > Adding a Node in the Tree View Adding a Node in the Tree ViewAlong 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. To add an element:
1. Click the element that you want to be the parent of the new element, or click an element that you want to be a sibling of the new element.
2. To add a child element, click
New Element
. To add a sibling element, hold down the Shift key and click
New Element.
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.
3. Double-click the element you want to add, or type the name of the new element and press Enter. If you added a child node, Stylus Studio adds it as the last child.
4. If the new element contains data, type a value for the new element and press Enter.
|