kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 1 | <?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
|
| 18 | existing 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.
|
| 24 | You 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
|
| 26 | and work directly with a file's source code. Many of the XML editing features
|
| 27 | in the XML editor Source view are very similar to those available in the Source
|
| 28 | view of Page Designer.</p><p>The Source view has many text editing features,
|
| 29 | such 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
|
| 32 | model to provide a list of acceptable continuations depending on where the
|
| 33 | cursor 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
|
| 35 | value, one double-click selects that value, another double click selects the
|
| 36 | attribute-value pair, and a third double-click selects the entire tag. This
|
| 37 | makes 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.
|
| 40 | In it: <ul>
|
| 41 | <li>The XML file is represented simultaneously as a table and a tree. This
|
| 42 | helps make navigation and editing easier.</li>
|
| 43 | <li>Content and attribute values can be edited directly in the table cells,
|
| 44 | while pop-up menus on the tree nodes give alternatives that are valid for
|
| 45 | that location. For example, the <uicontrol>Add child</uicontrol> menu item
|
| 46 | will list only those elements from a DTD or XML schema which would be valid
|
| 47 | children 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
|
| 49 | need to do form-oriented editing. For example, you could use the Create XML
|
| 50 | File wizard to create a template XML file for a job description form from
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 51 | a job description DTD. After those steps are completed, you would
|
kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 52 | only have to fill in the form data using the Design view.</p><p>The following
|
| 53 | links provide more information about the XML editor:</p></section>
|
| 54 | </conbody>
|
| 55 | </concept>
|
| 56 | <?Pub *0000002994?>
|