Creating an XML Document
See Also
You can use the New wizard to create three types of XML documents:
- Regular well-formed documents with no DTD or schema constraints
- DTD-constrained documents
- XML schema-constrained documents
To create a well-formed XML document:
- From the main window, choose File
New.
- In the New wizard, expand the XML folder and select XML Document. Then click
Next.
- Specify a name and location for the document and click Next.
- Select Well-formed Document and click Finish.
To create a DTD-constrained document:
- From the main window, choose File
New.
- In the New wizard, expand the XML folder and select XML Document. Then click
Next.
- Specify a name and location for the document. Then click Next.
- Select DTD-Constrained Document and click Next.
- 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.
- Specify the DTD system ID for your document.
- Specify the document root for your document. The Document Root combo box
contains all of the declared entities in your DTD.
- Click Finish.
To create an XML schema-constrained document:
- From the main window, choose File
New.
- In the New wizard, expand the XML folder and select XML Document. Then click
Next.
- Specify a name and location for the document. Then click Next.
- Select XML Schema-Constrained Document and click Next.
- 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.
- Specify the namespace for your document in the Document Namespace combo
box. The wizard automatically enters the schema's targetNamespace
in this field.
- 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.
- Click Finish.
Legal Notices