Eclipse Creating an XML File
Opening 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 (
) and select Other - Keyboard shortcut: ctrl + N
In the wizard dialog, you can perform the following operations:
-
Type XML in the input box, and the wizard associated with XML will be displayed
-
Select XML File in the expanded XML category
-
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 (
)
Using the new XML file wizard
In the new XML file wizard, we can perform the following operations:
-
Enter or select the folder the XML file belongs to
-
Enter the xml file name
-
Click the Next button to configure DTD, XML Schema description languages for XML, or you can directly click the Finish button to complete the creation of the XML file.
Viewing the new XML file
In the Package Explorer view, we can see the new XML file, and in the XML editor on the right, we can modify the new XML file.
The XML editor can use Design view mode or Source mode to design XML files.