Creating an XML Document

See Also 

The IDE enables you to easily create three types of XML documents. You can use the New wizard to create regular well-formed documents with no DTD or schema constraints, DTD-constrained documents, and XML schema-constrained documents.

To create a well-formed XML document:

  1. From the main window, choose File > New File.
  2. In the New File wizard, select the XML node in the Categories 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 Well-formed Document and click Finish.

    The IDE creates the new XML document in the specified location.

To create a DTD-constrained 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 DTD-Constrained Document and click Next.
  5. Type the DTD Public ID or select it from the combo box list of all public IDs for 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.

    The IDE creates the new XML document in the specified location.

To create an XML schema-constrained 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 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.

    The IDE creates the new XML document in the specified location.

See Also
Editing an XML Document
Creating a DTD
About XML Catalogs

Legal Notices