blob: 3d0a9d64b6c68e3e78c4307c5411d3f2161c19db [file] [log] [blame]
<?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">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2006 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<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))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Creating empty XML files" />
<meta name="abstract" content="You can create a new, empty XML file, which you can then edit in the XML editor. When you create a new, empty XML file, it is not associated with a DTD or XML schema file, so there are no restrictions on the kind of content it can contain." />
<meta name="description" content="You can create a new, empty XML file, which you can then edit in the XML editor. When you create a new, empty XML file, it is not associated with a DTD or XML schema file, so there are no restrictions on the kind of content it can contain." />
<meta content="XML files, creating" name="DC.subject" />
<meta content="XML files, creating" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/tcrexdtd.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/tcrexxsd.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/txedttag.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/cwxmledt.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tcretxml" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Creating empty XML files</title>
</head>
<body id="tcretxml"><a name="tcretxml"><!-- --></a>
<h1 class="topictitle1">Creating empty XML files</h1>
<div><p>You can create a new, empty XML file, which you can then edit in
the XML editor. When you create a new, empty XML file, it is not associated
with a DTD or XML schema file, so there are no restrictions on the kind of
content it can contain.</p>
<div class="section"><p>The following instructions were written for the Resource perspective,
but they will also work in many other perspectives.</p>
<p>To create a new,
empty XML file, follow these instructions:</p>
</div>
<ol>
<li><span>If necessary, create a project to contain the XML file.</span></li>
<li><span>In the workbench, click <span class="menucascade"><span class="uicontrol">File</span>
&gt; <span class="uicontrol">New</span> &gt; <span class="uicontrol">Other</span> &gt; <span class="uicontrol">XML</span>
&gt; <span class="uicontrol">XML</span></span> and click <span class="uicontrol">Next</span>. </span>
</li>
<li><span>Click the <span class="uicontrol">Create XML file from scratch</span> radio
button.</span></li>
<li><span>Click <span class="uicontrol">Next.</span></span></li>
<li><span>Select the project or folder that will contain the XML file.</span>
</li>
<li><span>In the <span class="uicontrol">File name</span> field, type the name of
the XML file, for example <kbd class="userinput">MyXMLFile.xml</kbd>. The name of
your XML file <var class="varname">must</var> end in <kbd class="userinput">.xml</kbd>.</span>
</li>
<li><span>Click <span class="uicontrol">Finish</span>.</span></li>
</ol>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cwxmledt.html" title="The XML editor is a tool for creating and viewing XML files.">XML editor</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<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>
<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>
<div><a href="../topics/txedttag.html" title="This file contains information about editing XML files.">Editing XML files</a></div>
</div>
</div>
</body>
</html>