blob: 654b609d10d25900980c4cd547d4fccc80a9ff17 [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?xml version="1.0" encoding="utf-8"?>
kpriceb59c9f62008-04-02 21:24:37 +00002<!--Arbortext, Inc., 1988-2006, v.4002-->
3<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
4 "concept.dtd">
kpriceef160682006-08-29 18:08:31 +00005<concept id="cwxmledt" xml:lang="en-us">
6<title>XML editor</title>
7<titlealts>
8<searchtitle>XML editor</searchtitle>
9</titlealts>
10<shortdesc>The XML editor is a tool for creating and viewing XML files.</shortdesc>
11<prolog><metadata>
12<keywords><indexterm>XML editor<indexterm>overview</indexterm></indexterm>
13</keywords>
14</metadata></prolog>
15<conbody>
16<p>You can use it to perform a variety of tasks such as:</p>
17<ul>
18<li>Creating new, empty XML files or generating them from existing DTDs or
19existing XML schemas</li>
20<li>Editing XML files</li>
21<li>Importing existing XML files for structured viewing</li>
22<li>Associating XML files with DTDs or XML schemas</li>
23</ul>
24<p>The XML editor has two main views - the Source view and the Design view.
kpriceb59c9f62008-04-02 21:24:37 +000025You can also use the Outline view to insert and delete elements.</p>
kpriceef160682006-08-29 18:08:31 +000026<section><title>Source view</title><p>The Source view enables you to view
27and work directly with a file's source code. Many of the XML editing features
28in the XML editor Source view are very similar to those available in the Source
29view of Page Designer.</p><p>The Source view has many text editing features,
30such as: <ul>
31<li> Syntax highlighting, unlimited undo/redo, and user-defined templates.</li>
32<li> Content assist, which uses the information in a DTD or schema content
33model to provide a list of acceptable continuations depending on where the
kpriceb59c9f62008-04-02 21:24:37 +000034cursor is located in an XML file, or what has just been typed.</li>
kpriceef160682006-08-29 18:08:31 +000035<li>"Smart" double-clicking behavior. If your cursor is placed in an attribute
36value, one double-click selects that value, another double click selects the
37attribute-value pair, and a third double-click selects the entire tag. This
38makes it easier to copy and paste commonly used pieces of XML.</li>
39</ul></p></section>
40<section><title>Design view</title><p>The XML editor also has a Design view.
kpriceb59c9f62008-04-02 21:24:37 +000041This view has the following features:<ul>
kpriceef160682006-08-29 18:08:31 +000042<li>The XML file is represented simultaneously as a table and a tree. This
43helps make navigation and editing easier.</li>
44<li>Content and attribute values can be edited directly in the table cells,
45while pop-up menus on the tree nodes give alternatives that are valid for
kpriceb59c9f62008-04-02 21:24:37 +000046that location. For example, the <uicontrol>Add Child</uicontrol> menu item
kpriceef160682006-08-29 18:08:31 +000047will list only those elements from a DTD or XML schema which would be valid
48children at that point (as long as grammar constraints are on).</li>
49</ul></p><p>The Design view is especially helpful if you are new to XML, or
50need to do form-oriented editing. For example, you could use the Create XML
51File wizard to create a template XML file for a job description form from
kpriceb59c9f62008-04-02 21:24:37 +000052a job description DTD. After those steps are completed, you would only have
kpricedb43fb32008-07-23 20:16:44 +000053to fill in the form data using the Design view.</p></section>
kpriceef160682006-08-29 18:08:31 +000054</conbody>
55</concept>