English 中文(简体)
Eclipse - Create XML File
  • 时间:2024-12-22

Ecppse - Create XML File


Previous Page Next Page  

Opening the New XML File wizard

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

    Cpck on the File menu and select New → Other or

    Cpck 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

    Cpck 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 −

    Cpcking on the File menu and selecting New → XML File or.

    Cpcking 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

    Cpck on the Next button to base the xml file on DTD, XML Schema or XML template else cpck 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.

Advertisements