You can add columns to an XML view inside the XML workspace. To add a column, select the column from the XPath Navigator.
You can add a column to an XML view when the following conditions are true:
The component path starts from the element in the schema that is the view root for that view.
The component is not an enclosure element.
The component does not violate normalization or pivoting rules. For example, you cannot add more than one multiple-occurring element to a view.
You can add mixed content elements as either simple or complex types.
Two views can share the same column, and a view might contain multiple identical columns.
To add columns to a view:
Select an XML view in the workspace.
Highlight a parent element in the Navigator that contains the components you want to add.
Click Components > XPath Navigator.
The XPath Navigator appears in the Navigator window.
Click the Mode button and choose to add a column or a view row.
Choose Advanced to add a pivoted column to the view.
A pivoted column is an occurrence of a multiple-occurring element. You can add single-occurring columns in Advanced Mode.
You cannot create pivoted columns in XML target definitions.
Drag a column from the XPath Navigator to the appropriate view in the XML workspace. You can select multiple columns at a time.
The XML Editor validates the column you add. If the column is invalid for the view, a message appears in the status bar while you are dragging the column. New columns display as you add them to views.