Latest web development tutorials

Eclipse create XML file

Open the New XML File wizard

You can use the New XML File wizard to create an XML file. The wizard opens the way are:

  • Click the File menu and select New> Other
  • Click the New drop-down box ( new_drop_down ) Select Other
  • Shortcut key combination: ctrl + N

In the Wizard dialog box, you can do the following:

  • In the input box XML, XML wizard will show the association
  • Select the XML file in the expanded XML category
new_xml_file_new_wiz
  • Click the Next button to enter the New XML File wizard

note:

Next in the wizard, we can also do the following:

  • Click the File menu and select New> XML File
  • Click the XML File button in the toolbar ( new_xml_file_btn )

Use the new XML file wizard

In the New XML File wizard we can proceed as follows:

  • Enter or select the file belongs to an XML file folder
  • Enter the xml file name
new_xml_file_new_wiz_2
  • Click the Next button to configure DTD, XML Schema XML schema description language, or you can click Finish button to complete the creation of XML files.

See the new XML file

In the Package Explorer view, we can see the new XML file in the right XML editor we can modify the new XML file.

new_xml_file_pe

XML editor can use the View mode or source mode to design XML file.