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:
- From the main window, choose File > New
File.
- 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.
- Specify a name and location for the document and click Next.
- Select Well-formed Document and click Finish.
The IDE creates the new
XML document in the specified location.
To create a DTD-constrained 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 DTD-Constrained Document and click Next.
- 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.
- 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.
The IDE creates the new XML document in the specified location.
To create an XML schema-constrained 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 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.
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