XML Tasks: Quick Reference

The following table describes common XML editing tasks.

To perform this task Follow these steps
Create a new XML document.
  1. From the main window, choose File > New File.
  2. 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.
  3. Specify a name and location for the document and click Next.
  4. Select the Document type you wish to create and click Finish.
Open an XML document in the Source Editor.
Check an XML document.
  1. Right-click the document's node in the Projects or Files window.
  2. Choose Check XML, Check DTD, or Check CSS, depending on the document you are checking.
Validate an XML document.
  1. Right-click the document's node in the Projects or Files window.
  2. Choose Validate XML.
Create a new CSS.
  1. In the main window, choose File > New File.
  2. Expand the XML node and select Cascading Style Sheet. Click Next to proceed.
  3. Enter a name and location for the CSS and click Finish.
Generate a CSS.
  1. Right-click an existing DTD node and choose Generate CSS.
  2. In the dialog box, type a new name for the CSS or click OK to use the default name.
Create an empty DTD.
  1. From the main window, choose File > New File.
  2. Expand the XML node and select DTD Entity. Click Next to proceed.
  3. Type a name and package for the DTD.
  4. Click Finish to create the new file.
Generate a DTD.
  1. In the Files window, right-click an XML file's node and choose Generate DTD.
  2. Type a name for the new DTD and click OK.
Generate a DOM Tree Scanner.
  1. In the Files window, right-click a DTD node and choose Generate DOM Tree Scanner.
  2. In the dialog box, supply a name for the DOM scanner file and click OK.
Generate a SAX document handler.
  1. Right-click a DTD node and choose SAX Document Handler Wizard.
  2. Specify the versions of JAXP and the SAX parser you want to use. Click Next to proceed.
  3. Customize your document handler interface on the Element Mappings page. Click Next to proceed.
  4. Configure your data convertor interface on the Data Convertors page. Click Next to proceed.
  5. 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.
  6. Click Finish.
Create an XML schema.
  1. From the main window, choose File > New File.
  2. Expand the XML folder and select XML Schema.
  3. Specify a name and location for the file and click Finish.
Configure global XML settings.
  1. From the main menu, choose Tools > Options.
  2. In the Options window, expand Editing  > XML, and select General Settings.
  3. Edit the desired properties in the Option window's right pane.

Legal Notices