Create XML File

Opening the New XML File wizard

You can use the New XML file wizard to create an XML file. To invoke this wizard −

  • Click on the File menu and select New → Other or
  • Click on the new drop down box (Drop Down Box) select other or
  • Press ctrl + N

Once the Select a wizard dialog box comes up −

  • In the filter text box enter xml, this should show only the wizards related to xml.
  • Expand XML category and select XML File.
XML File
  • Click on Next to bring up the New XML File wizard.

Note

If the XML perspective is open the New XML wizard can be invoked by −

  • Clicking on the File menu and selecting New → XML File or.
  • Clicking on the XML File button (XML File Button) on the tool bar.

Using the New XML File wizard

Once the New XML File wizard comes up −

  • Enter or select the parent folder.
  • Enter the name of the xml file.
New XML File
  • Click on the Next button to base the xml file on DTD, XML Schema or XML template else click on Finish.

Viewing the Newly Created XML File

The newly created XML file should appear in the Package Explorer view and an XML editor instance that allows you to modify the newly created XML file should appear in the editor area.

Create XML File

The XML editor allows you to edit an XML file using either the Design view or Source view.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *