blob: 495d04ff3aac689ee28e34a032f584a4a6fc48cb [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html lang="en-us" xml:lang="en-us">
syeshinbefd53e2005-07-27 18:16:40 +00003<head>
kpriceef160682006-08-29 18:08:31 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kprice888ac552010-05-11 21:19:48 +00005<meta name="copyright" content="Copyright (c) 2000, 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2009" />
kpriceef160682006-08-29 18:08:31 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
10<meta content="task" name="DC.Type" />
kprice0d617d02007-04-05 04:02:49 +000011<meta name="DC.Title" content="Creating XML files" />
12<meta name="abstract" content="You can create a new XML file which you can then edit in the XML editor. You create a new XML file that is not associated with a DTD or XML schema file, so there are no restrictions on the kind of content it can contain." />
13<meta name="description" content="You can create a new XML file which you can then edit in the XML editor. You create a new XML file that is not associated with a DTD or XML schema file, so there are no restrictions on the kind of content it can contain." />
kpriceef160682006-08-29 18:08:31 +000014<meta content="XML files, creating" name="DC.subject" />
15<meta content="XML files, creating" name="keywords" />
kprice888ac552010-05-11 21:19:48 +000016<meta scheme="URI" name="DC.Relation" content="../topics/tcrexdtd.html" />
17<meta scheme="URI" name="DC.Relation" content="../topics/tcrexxsd.html" />
18<meta scheme="URI" name="DC.Relation" content="../topics/txedttag.html" />
19<meta scheme="URI" name="DC.Relation" content="../topics/cwxmledt.html" />
kpriceef160682006-08-29 18:08:31 +000020<meta content="XHTML" name="DC.Format" />
21<meta content="tcretxml" name="DC.Identifier" />
22<meta content="en-us" name="DC.Language" />
23<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
kprice0d617d02007-04-05 04:02:49 +000024<title>Creating XML files</title>
syeshin66078272005-09-20 16:53:38 +000025</head>
syeshinbefd53e2005-07-27 18:16:40 +000026<body id="tcretxml"><a name="tcretxml"><!-- --></a>
kpriceef160682006-08-29 18:08:31 +000027
28
kprice0d617d02007-04-05 04:02:49 +000029<h1 class="topictitle1">Creating XML files</h1>
kpriceef160682006-08-29 18:08:31 +000030
31
32
33
kprice0d617d02007-04-05 04:02:49 +000034<div><p>You can create a new XML file which you can then edit in the XML
35editor. You create a new XML file that is not associated with a DTD or XML
36schema file, so there are no restrictions on the kind of content it can contain.</p>
kpriceef160682006-08-29 18:08:31 +000037
syeshind0bdb8e2005-10-27 17:44:14 +000038<div class="section"><p>The following instructions were written for the Resource perspective,
syeshinbefd53e2005-07-27 18:16:40 +000039but they will also work in many other perspectives.</p>
kprice0d617d02007-04-05 04:02:49 +000040<p>To create a new
kpriceb59c9f62008-04-02 21:24:37 +000041XML file, complete the following steps:</p>
syeshinbefd53e2005-07-27 18:16:40 +000042</div>
43
kpriceef160682006-08-29 18:08:31 +000044<ol>
kpriceb59c9f62008-04-02 21:24:37 +000045<li><span>Create a project to contain the XML file if one does not exist
46already.</span></li>
kpriceef160682006-08-29 18:08:31 +000047
48<li><span>In the workbench, click <span class="menucascade"><span class="uicontrol">File</span>
kpriceb59c9f62008-04-02 21:24:37 +000049 &gt; <span class="uicontrol">New</span> &gt; <span class="uicontrol">Other</span></span> and select <span class="menucascade">
50<span class="uicontrol">XML</span> &gt; <span class="uicontrol">XML</span></span>. Click <span class="uicontrol">Next</span>.</span>
kpriceef160682006-08-29 18:08:31 +000051</li>
52
kpriceef160682006-08-29 18:08:31 +000053<li><span>Select the project or folder that will contain the XML file.</span>
54</li>
55
56<li><span>In the <span class="uicontrol">File name</span> field, type the name of
kpriceb59c9f62008-04-02 21:24:37 +000057the XML file and click <span class="uicontrol">Next</span>. The name of your XML file
58must end in <kbd class="userinput">.xml</kbd>.</span></li>
kpriceef160682006-08-29 18:08:31 +000059
kpriceb59c9f62008-04-02 21:24:37 +000060<li><span>Select the <span class="uicontrol">Create XML file from an XML template</span> radio
61button and click <span class="uicontrol">Next.</span>.</span></li>
kprice0d617d02007-04-05 04:02:49 +000062
kpriceb59c9f62008-04-02 21:24:37 +000063<li><strong>Optional: </strong><span>You may choose to view and edit the XML templates
64that will be used in your new XML file.</span></li>
kprice0d617d02007-04-05 04:02:49 +000065
kpriceef160682006-08-29 18:08:31 +000066<li><span>Click <span class="uicontrol">Finish</span>.</span></li>
67
68</ol>
69
kpriceb59c9f62008-04-02 21:24:37 +000070<div class="section" />
71
syeshinaaa21932005-09-22 17:13:22 +000072</div>
kpriceef160682006-08-29 18:08:31 +000073
74<div><div class="relconcepts"><strong>Related concepts</strong><br />
kprice888ac552010-05-11 21:19:48 +000075<div><a href="../topics/cwxmledt.html" title="The XML editor is a tool for creating and viewing XML files.">XML editor</a></div>
kpriceef160682006-08-29 18:08:31 +000076</div>
77<div class="reltasks"><strong>Related tasks</strong><br />
kprice888ac552010-05-11 21:19:48 +000078<div><a href="../topics/tcrexdtd.html" title="You can generate an XML file from your DTD if you want to quickly create an XML file based on your DTD file. Generating an XML file from your DTD saves you time by creating an XML file that is already associated with your DTD, and contains at least some of the elements and attributes in your DTD.">Generating XML files from DTDs</a></div>
79<div><a href="../topics/tcrexxsd.html" title="You can generate an XML file from your XML schema if you want to quickly create an XML file based on your XML schema file. Generating an XML file from your XML schema saves you time by creating an XML file that is already associated with your XML schema, and contains at least some of the elements and attributes in your XML schema.">Generating XML files from XML schemas</a></div>
80<div><a href="../topics/txedttag.html" title="This file contains information about editing XML files.">Editing XML files</a></div>
kpriceef160682006-08-29 18:08:31 +000081</div>
82</div>
83
syeshinbefd53e2005-07-27 18:16:40 +000084</body>
85</html>