Changing the Display of XML Nodes
You can use node views to change the way the IDE displays XML documents in
the Explorer and the XML editor. Node views enable to you filter out certain
data from the node's presentation.
You can set different node views at different levels within a single XML document.
For example, you can set one element to display nodes in one view while another
element displays nodes in a different view.
To set the node view for a node:
- Right-click a node and choose Properties.
- Set the Node View property in the View tab. The combo box in Node View property
contains any customized node views you have created as well as the following
preset node views:
- Data Only Node View. Includes whitespace in element content.
Hides comments and processing instructions.
- Grouped DTD Node View. Displays DTD nodes in groups by type.
Hides all whitespace in element content.
- Linear Node View. Displays all nodes in the same order as
they appear in document.
- (reset to parent's value). Resets the node view to match
the parent node's current node view. If you have not specified a node
view on any of the parent nodes, this option reverts to the default XML
node view.
To set the default node view for all XML documents:
- From the main window, choose Tools
Options.
- Expand Editing
XML
and select XML Editor Settings.
- Change the Default Node View Settings property.
You can also set the maximum length of node display names in XML Editor
Settings.
Legal Notices