IBM Version 5 manual Editing an XML file, XML editor

Models: Version 5

1 340
Download 340 pages 15.44 Kb
Page 98
Image 98

Figure 5-2 XML editor

Editing an XML file

The XML Editor has two main views: Source view, Design view, in addition to utilizing the Outline view, and Task view. The Source view is a text editor that lets you directly edit the source of the XML document. It has several text editing features, such as syntax highlighting, and content assist, which uses the information in a DTD or schema content model to provide a list of acceptable continuations depending on where the cursor is located in an XML file, or what has just been types. The XML editor Source view also includes a smart double-clicking behavior. If your cursor is placed in an attribute value, one double-click selects that value, another double-click selects the attribute-value pair, and a third double-click selects the entire tag. This makes it easier to copy and paste commonly used pieces of your XML code.

The Design view displays the XML document as a tree enabling you to manipulate the document by adding, removing, and editing tree nodes. This also makes navigation easier. Note that in the left column of the Design view, we see the elements, attributes, and other nodes of the XML document's tree. The right column is used to display the values associated with these nodes. Content and attribute values can be edited directly in the table cells, while right-click menus on

82 The XML Files: Development of XML/XSL Applications Using WebSphere Studio

Page 98
Image 98
IBM Version 5 manual Editing an XML file, XML editor