Section 4.4.  The XML Structure task pane

Prev don't be afraid of buying books Next

4.4. The XML Structure task pane

Now that we have marked up the elements, let's take a closer look at the XML Structure pane.

4.4.1 Document structure

The top part of the XML Structure pane shows the structure of your XML document. When you select an element in the task pane, it selects the contents of that element in the document itself. This provides an easy way to navigate the document. In addition, when you position the cursor in the document, the appropriate element is selected on the task pane.

4.4.2 Error signals

When there are errors in the document, a diamond-shaped yellow icon appears next to the element in the task pane. Hovering over the icon will reveal an explanation of the problem.

4.4.3 Available element types

The bottom part of the XML Structure task pane normally lists the element types available for children of the current element. You can see all element-type names in the vocabulary by unchecking the List only child elements of current element box.[5]

[5] This dialog can be confusing because it mixes element with element type. For example, the first and third occurrences of "element" are correct while the second should be "element type". See 20.2, Tag vs. element, on page 431.

Despite the list, you can still add an element that is not valid. That is because the list does not take into account any required sequence of child elements, nor the number of times child elements are allowed to occur. Fortunately, such errors do appear in the top part of the task pane.

4.4.4 Viewing tag icons

There is an alternative view in Word that does not show the tag icons in the document pane. You can switch to this view by unchecking the Show XML tags in the document box on the XML Structure pane. The document will then look like a typical Word document, although the XML Structure pane will still be usable to identify and tag elements shown in the document pane.

Amazon


XML in Office 2003. Information Sharing with Desktop XML
XML in Office 2003: Information Sharing with Desktop XML
ISBN: 013142193X
EAN: 2147483647
Year: 2003
Pages: 176

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net