Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Web Tools Guide
Previous Page Home Next Page

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.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire