Creating an XML Document

See Also 

You can use the New wizard to create three types of XML documents:

To create a well-formed XML document:

  1. From the main window, choose File and choose New.
  2. In the New wizard, expand the XML folder and select XML Document. Then click Next.
  3. Specify a name and location for the document and click Next.
  4. Select Well-formed Document and click Finish.

To create a DTD-constrained document:

  1. From the main window, choose File and choose New.
  2. In the New wizard, expand the XML folder and select XML Document. Then click Next.
  3. Specify a name and location for the document. Then click Next.
  4. Select DTD-Constrained Document and click Next.
  5. Type the DTD Public ID or select the ID from the combo box. The combo box lists the public IDs for all your mounted XML catalogs. Once you have specified the DTD public ID, press Enter to automatically load the DTD information in the wizard.
  6. Specify the DTD system ID for your document.
  7. Specify the document root for your document. The Document Root combo box contains all of the declared entities in your DTD.
  8. Click Finish.

To create an XML schema-constrained document:

  1. From the main window, choose File and choose New.
  2. In the New wizard, expand the XML folder and select XML Document. Then click Next.
  3. Specify a name and location for the document. Then click Next.
  4. Select XML Schema-Constrained Document and click Next.
  5. In the Schema URI field, type or browse to the schema location. Once you have selected a schema, the wizard suggests values for the remaining fields in the pane.
  6. Specify the namespace for your document in the Document Namespace combo box. The wizard automatically enters the schema's targetNamespace in this field.
  7. Type or select the document root for your document in the Root Element combo box. The combo box contains all of the schema's exposed elements.
  8. Click Finish.
See Also
XML Node
Editing an XML Document
DTD Node
Creating a DTD
XML Catalog Support in the IDE

Legal Notices