Editing namespace information

Your namespace information is used to provide various information about the XML file, such as the XML schema and namespace it is associated with. If desired, you can change the schema and namespace your XML file is associated with or add a new association. Modifying any associations can impact what content is allowed in the XML file.

The following instructions were written for the Resource perspective, but they will also work in many other perspectives.

To edit your schema information, complete the following steps:

  1. In the Design view of the XML editor, right-click your root element and click Edit Namespaces.
  2. Your XML file can be associated with more than one namespace or schema. Select the entry you want to edit and click Edit.
  3. The value in the Namespace Name field is a namespace the XML file is associated with. Your XML file should be associated with the same namespace(s) its XML schema is associated with. For more information about namespaces, refer to the related reference. For more information, see XML namespaces.
  4. All qualified elements and attributes in the XML file associated with the namespace will be prefixed with the Prefix value.
  5. The Location Hint field contains the location of the XML schema the XML file is associated with. An XML Catalog Key or a namespace name can be specified in this field. Click Browse to view all XML schemas in the workbench and XML Catalog.
  6. Click OK, then click OK again.

If you want to create a new association, click Add instead of Edit. You can then either select the Specify From Registered Namespace radio button and select the namespace declarations you want to add or select the Specify New Namespace radio button and fill in the fields as necessary.

If you do not have namespace information in your XML file, you can right-click your root element in the Design view and click Edit Namespaces to add it. If you do not have a root element, you must create one before you can add the namespace information.
Related concepts
XML file associations with DTDs and XML schemas
Related tasks
Editing with DTD or XML schema constraints
Adding entries to the XML Catalog
Updating XML files with changes made to DTDs and schemas
Editing in the Design view
Related information
XML namespaces