Element Only
The Tree-View pane shows the Element hierarchy of the XML Source.
Attributes and Text Nodes
To keep the view simple, attributes and text nodes are not shown in the tree. Instead, as each element is selected the associated attributes, text nodes and any immediate sub-elements with text nodes are shown in the Element Nodes list.
Alter Nesting View
A 'Slider' control is available in the toolbar above the tree-view that can be used to increase or decrease the level of nesting shown by the tree-view. Collapsing the tree before editing an XPath expression is a useful way of seeing the location path as the nodes are expanded automatically when there are element 'hits'.
Icons
Three icons are used on nodes on the tree-view, these are:
- (House) This shows the position of the context node
- (Open Folder) This shows the currently selected node
- (Clip-Board) Used to highlight all XPath node 'hits' within a nodeset result
Selecting a node
Clicking on a node in the tree-view results in the corresponding element in the raw XML text pane being selected.
Double-Clicking on a tree-view node results in the XPath location for the selected element being inserted into the XPath Editor Pane.
Changing the context node
To set a new context node, click on the required element and click 'New Context' on the XPath toolbar.
Location Path
The XPath location of the selected element is shown in the 'Selected Location' view below the tree-view. Predicates with element position values are inserted into the location path in cases where the element location would otherwise be ambiguous (other sibling-elements exist with the same name).
Prefixes
If element names have prefixes these are included in the tree-node labels, and in the location path below. The prefixes are those of the evaluation environment as set in the Namespace Management Pane, not necessarily the same as those in the source XML.