blob: 814fad3db391b281c0998943992a6941e526f5bd [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 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
<meta name="DC.Title" content="Creating empty XML files" />
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Creating empty XML files</title>
<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 an XML
file from scratch, follow these instructions:</p>
<ol><li class="skipspace"><span>If necessary, create a project to contain the XML file.</span></li>
<li class="skipspace"><span>In the workbench, click <b> <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></b>. </span></li>
<li class="skipspace"><span>Click <b> <span class="uicontrol">Next</span></b>.</span></li>
<li class="skipspace"><span>Click the <b> <span class="uicontrol">Create XML file from scratch</span>
<li class="skipspace"><span>Click <span class="uicontrol"><b>Next</b>.</span></span></li>
<li class="skipspace"><span>Select the project or folder that will contain the XML file.</span></li>
<li class="skipspace"><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 class="skipspace"><span>Click <b> <span class="uicontrol">Finish</span></b>.</span></li>
<div><p><b class="relconceptshd">Related concepts</b><br />
<a href="../topics/cwxmledt.html" title="The XML editor is a tool for creating and viewing XML files">XML editor</a><br />
<p><b class="reltaskshd">Related tasks</b><br />
<a href="../topics/tcrexdtd.html" title="">Generating an XML file from a DTD</a><br />
<a href="../topics/tcrexxsd.html" title="">Generating an XML file from an XML schema</a><br />
<a href="../topics/txedttag.html" title="">Editing XML files</a><br />