The following table describes common XML editing tasks.
To perform this task |
Follow these steps |
Create a new XML document. |
- From the main window, choose File > New File.
- In the New File wizard, select the XML node in the left pane and the
XML Document node in the right pane. Then click Next.
- Specify a name and location for the document and click Next.
- Select the Document type you wish to create and click Finish.
|
Open an XML document in the Source Editor. |
|
Check an XML document. |
- Right-click the document's node in the Projects or Files window.
- Choose Check XML, Check DTD, or Check
CSS, depending on the document you are checking.
|
Validate an XML document. |
- Right-click the document's node in the Projects or Files window.
- Choose Validate XML.
|
Create a new CSS. |
- In the main window, choose File > New File.
- Expand the XML node and select Cascading
Style Sheet. Click Next to proceed.
- Enter a name and location for the CSS and click Finish.
|
Generate a CSS. |
- Right-click an existing DTD node and choose Generate
CSS.
- In the dialog box, type a new name for the CSS or click OK to use
the default name.
|
Create an empty DTD. |
- From the main window, choose File > New File.
- Expand the XML node and select DTD Entity. Click Next to proceed.
- Type a name and package for the DTD.
- Click Finish to create the new file.
|
Generate a DTD. |
- In the Files window, right-click an XML file's node and choose Generate
DTD.
- Type a name for the new DTD and click OK.
|
Generate a DOM Tree Scanner. |
- In the Files window, right-click a DTD node and choose Generate
DOM Tree Scanner.
- In the dialog box, supply a name for the DOM scanner file and click
OK.
|
Generate a SAX document handler. |
- Right-click a DTD node and choose SAX
Document Handler Wizard.
- Specify the versions of JAXP and the SAX parser you want to use. Click
Next to proceed.
- Customize your document handler interface on the Element Mappings
page. Click Next to proceed.
- Configure your data convertor interface on the Data Convertors page.
Click Next to proceed.
- Specify the desired names of the generated files and select the Save
Customized Bindings checkbox if you want to save your customizations
to the SAX code generation.
- Click Finish.
|
Create an XML schema. |
- From the main window, choose File > New File.
- Expand the XML folder and select XML
Schema.
- Specify a name and location for the file and click Finish.
|
Configure global XML settings. |
- From the main menu, choose Tools > Options.
- In the Options window, expand Editing > XML, and select General
Settings.
- Edit the desired properties in the Option window's right pane.
|