Creating empty XML files

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.

The following instructions were written for the Resource perspective, but they will also work in many other perspectives.

To create an XML file from scratch, follow these instructions:

  1. If necessary, create a project to contain the XML file.
  2. In the workbench, click File > New > Other > XML > XML.
  3. Click Next.
  4. Click the Create XML file from scratch radio button.
  5. Click Next.
  6. Select the project or folder that will contain the XML file.
  7. In the File name field, type the name of the XML file, for example MyXMLFile.xml. The name of your XML file must end in .xml.
  8. Click Finish.

Related concepts
XML editor

Related tasks
Generating an XML file from a DTD
Generating an XML file from an XML schema
Editing XML files