 |
A new workspace window tab exists in UltraXML. This tab contains 3 sub tabs, one for XML, one for DTD and one for XSL.
The XML tab contains the tree hierarchy of the current XML stream. 3 buttons exist at the top of the tree; Auto, Update and Find.
Auto– When selected the tree will automatically update every time the document is changed.
Update– For very long documents auto update can be slow. When auto is not used, pressing the Update button will completely rebuild the XML tree.
Find– Pressing find will ensure that the current location in the XML stream is visible in the tree view of the XML.
Show/ Hide Attributes – When selected an element attribute editor window will appear at the bottom of the XML workspace.
Find – Pressing find will ensure that the current location in the XML stream is visible in the tree.
|
Navigating with the XML tree
When the element nodes in the XML tree are selected, the cursor will move to the position in the XML text stream that corresponds to that node. XML attributes are read directly from the XML source and not the tree. If the auto tree option is switched off, you will need to update the tree by pressing the Update Tree button before navigating with the tree. You may also work in the opposite manner, by finding the current location in the tree of the cursor position simply by clicking on the Find button in the XML tree.
XML Tree Menus
Right clicking on an empty XML workspace window will display the Import XML menu, allowing you to quickly import XML into a frame.

The XML element menu will be displayed when right clicking on an element in the tree.
A small attribute menu will also appear when right clicking on an attribute in the tree.
The XML element node menu can be used to copy, move, delete, add or edit an XML element. Selecting ‘Edit Attributes…’ will display the XML Attribute property sheet windows.
XML Attribute Property Sheet
The XML attribute property sheet is useful for changing attributes of an element. When you move the cursor or select an element node, the previous XML element will be parsed and any attributes are displayed in the property sheet. The DTD is also parsed and the drop down box is filled will all the possible legal values, according to the current DTD for the XML.
Upon changing the attribute value, the corresponding XML tag is automatically updated.
You may delete an attribute by highlighting the attribute and pressing the scissor ‘delete attribute ’button on the left.
You may create a new attribute for the XML element by clicking on the element name in the attribute property sheet and entering the name of the attribute in the drop down. This will insert a new attribute in alphabetical order into the element definition. You may then set its value in the usual way by highlighting it in the property sheet and entering a value in the drop down.
Popup Style menu
When XML Document option is switched on, pressing return in the code editor or Workspace window will display a popup menu, forcing you to choose a suitable style tag. Once selected, the start and end tag will be created and the cursor positioned between them.
The XML element node menu can be used to copy, move, delete, add or edit an XML element. Selecting ‘Edit Attributes…’ will display the XML Attribute property sheet windows.
|