XML Namespaces

The XML Namespaces settings provide namespace declarations for an XML file type. Each namespace declaration specifies a URI for each prefix. When Studio 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:
  • An XML document uses a namespace prefix.
  • Both the document and the file type settings have a namespace declaration for this prefix.
To specify how Studio resolves such a situation, see one of the following options:
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.)

Related concepts
Detection Settings - Identify XML File Type by Content
About XML Parser Rules with Examples
Related reference
XML Writer
XML Entity Conversion
XML Whitespace Normalization
XML Preview
XML Validation page
Embedded Content