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