Eclipse tutoria...login
Eclipse tutorial
author:php.cn  update time:2022-04-13 14:09:28

Eclipse creates XML file



Open the New XML File Wizard

You can use the New XML File Wizard to create an XML file. The ways to open the wizard are:

  • Click the File menu and select New > Other

  • Click the New drop-down box (new_drop_down.jpg) and select Other

  • Shortcut key combination: ctrl + N

You can perform the following operations in the wizard dialog box:

  • Enter XML in the input box, a wizard for associated XML will be displayed

  • 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 on the toolbar ( new_xml_file_btn.jpg )

Use the New XML File Wizard

In the New XML File Wizard we can perform the following operations:

  • Enter or select the folder where the XML file belongs

  • Enter the xml file name

new_xml_file_new_wiz_2.jpg
  • Click Next The button can configure the XML Schema Description Language of DTD, XML Schema, or you can directly click the Finish button to complete the creation of the XML file.

View the new XML file

We can see the new XML file in the Package Explorer view, and we can modify the new XML in the XML editor on the right document.

new_xml_file_pe.jpg

The XML editor can use view mode or source mode to design XML files.

php.cn