How to Manage the Schema Tree View
Management tasks with respect to the schema tree view can be divided into four categories: changing its size, changing its background color and font, changing its use of warning dialogs, and expanding and collapsing its tree structure. This topic provides step-by-step instructions for these various tasks.
To make the schema tree view taller or shorter
Move the mouse pointer to the bottom edge of the Microsoft Visual Studio main editing window, which displays the schema tree view side-by-side with the XSD view, until the cursor changes to the standard window vertical resizing icon.
Click and hold the left mouse button and drag the window edge either up or down.
You have vertically resized the schema tree view by vertically resizing the entire main editing window.
To make the schema tree view wider or more narrow
Move the mouse pointer to the pane divider in the Visual Studio main editing window, which divides the schema tree view from the XSD view, until the cursor changes to the standard window horizontal resizing icon.
Click and hold the left mouse button and drag the pane edge either left (narrower) or right (wider).
You have horizontally resized the schema tree view by changing the amount of the main editing window dedicated to the schema tree view, relative to the XSD view.
You can also make the schema tree view wider or narrower by horizontally resizing the entire main editing window.
To change the background color and/or font used by the schema tree view
In Visual Studio, on the Tools menu, click Options.
In the Options dialog box, click the BizTalk Editor folder, and if necessary, expand the Schema Display category by clicking the plus (+) icon.
Change the background color and/or font by using the drop-down color picker and/or Font dialog box associated with the Schema Tree Background Color and Schema Tree Font properties, respectively.
Access the Font dialog box by using the ellipsis (…) button located at the right end of the Schema Tree Font property value box.
To change the warning dialogs used when working in the schema tree view
In Visual Studio, on the Tools menu, click Options.
In the Options dialog box, click the BizTalk Editor folder, and if necessary, expand the Editing Options section by clicking the plus (+) icon.
Set any of the following properties to True or False by using the drop-down list accessed at the right edge of the respective property value box.
Note
The value True is the default value for all three warning dialog box options.
Property Description Show Destroy Structure Warning Dialog When set to True, displays a warning dialog box before the schema structure is destroyed, and allows you to cancel the destructive operation. Show Encode Warning Dialog When set to True, displays a dialog box when the node name you have typed will not be valid in XML unless encoded, allowing you to cancel the naming operation, or proceed with encoding the name. Show Invalid Insert Dialog When set to True, displays a warning dialog box for certain node insertion errors, and offers options about how to proceed. The possible node insertion errors include:
- You have created duplicate Field Attribute nodes with the same name and the same parent node.
- You have created duplicate Record nodes with the same name and the same parent node, but with different underlying types.
To completely expand all or part of the schema tree
Select the node under which you want to completely expand the schema tree.
The selected node must be a node with a plus (+) or minus (-) icon next to it.
On the BizTalk menu, or on the shortcut menu for that node, click Expand Schema Node. All nodes below the selected node are completely expanded. If the schema tree below the selected node is already completely expanded, the Expand Schema Node menu item will be dimmed.
Note
In a large and complex schema, when you click Expand Schema Node on a node that contains complex types, some nodes in the schema may remain in the collapsed state. This is because the recursive process expands only the first occurrence of a given complex type. You must manually expand later occurrences of the same type. This behavior is designed to optimize performance when expanding nodes in large and complex schemas.
To completely collapse all or part of the schema tree
Select the node under which you want to completely collapse the schema tree.
The selected node must be a node with a plus (+) or minus (-) icon next to it.
On the BizTalk menu, or on the shortcut menu for that node, click Collapse Schema Node.
All nodes below the selected node are completely collapsed.
Note
If the schema tree below the selected node is already collapsed, the Collapse Schema Node menu item will be dimmed.
Note
This operation will not remember the individual expand and collapse settings of the nodes below the selected node. In other words, when you re-expand the collapsed node, previous individual settings are lost and you must expand the schema tree below that point node-by-node, or expand it entirely.
To expand a node of the schema tree
Click the plus (+) icon next to the node you want to expand.
Note
The chosen node is expanded. Whether or not its descendent nodes are expanded or collapsed depends on how the chosen node was collapsed and their previous expand and collapse settings.
To collapse a node of the schema tree
Click the minus (-) icon next to the node you want to collapse.
Note
The chosen node is collapsed.
Note
This operation will remember the individual expand and collapse settings of the nodes below the chosen node. In other words, when you re-expand the collapsed node by using the plus (+) icon, the previous individual settings are not lost and the schema tree below that point returns to its previous expand/collapse state.