XML Namespaces
The XML Namespaces settings provide namespace declarations for an XML file type. Each namespace declaration specifies a URI for each prefix. When WorldServer opens an XML document of this file type, it uses these namespaces.
Each namespace entry has two fields:
- Namespace prefix
- The namespace prefix.
- Namespace URI
- The URI (Uniform Resource Indicator - loosely synonymous with IRL) that identifies this namespace.
An XML document can have its own namespace declarations. Hence you can get the situation in which:
To specify how WorldServer resolves such a situation, see one of the following options:
- An XML document uses a namespace prefix.
- Both the document and the file type settings have a namespace declaration for this prefix.
| Option | Description |
|---|---|
| Namespace URI if xmlns: is declared in documents, prefix if not | If a namespace declaration in the document defines a prefix, use it. Otherwise, use the namespace declaration in the file type settings (that is, on this page). (Use namespace declarations in the file type settings to resolve prefixes that are not in the document declarations.) |
| Prefix only (ignore xmlns: declarations in the document) | If a namespace declaration in the file type settings (that is, on this page), defines a prefix, then use it. Otherwise use the namespace declaration in the document. (Use the namespace declarations in the document to resolve prefixes that are not in the file type settings declarations.) |