Creating XML files

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.

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

To create a new XML file, complete the following steps:

  1. Create a project to contain the XML file if one does not exist already.
  2. In the workbench, click File > New > Other and select XML > XML. Click Next.
  3. Select the project or folder that will contain the XML file.
  4. In the File name field, type the name of the XML file and click Next. The name of your XML file must end in .xml.
  5. Select the Create XML file from an XML template radio button and click Next..
  6. Optional: You may choose to view and edit the XML templates that will be used in your new XML file.
  7. Click Finish.
Related concepts
XML editor
Related tasks
Generating XML files from DTDs
Generating XML files from XML schemas
Editing XML files