Defining Namespace Prefixes Used in Path Range Indexes and Fields
- Last Updated: September 10, 2026
- 1 minute read
- MarkLogic Server
- Version 12.0
- Documentation
Path range indexes, fields, and excluded paths make use of path expressions to identify target XML elements, attributes, and JSON properties. Path expressions that contain namespace prefixes must define the corresponding namespace bindings in the database's Path Namespaces configuration. These namespace bindings can be used across all features in this database.
Note:
Namespace bindings in Template Driven Extraction (TDE) templates are independent of a database's Path Namespaces configuration.
To define a namespace binding, follow these steps:
-
Click Databases in the left tree menu. A list of databases appears.
-
Click your target database.
-
Click Path Namespaces in the tree menu, under the selected database.
-
Click the Add tab.
-
In the Prefix field, enter the namespace prefix you intend to use for the element or attribute in the XPath expression in your path range index.
-
In the Namespace Uri field, enter the namespace URI of the XML element or attribute in the XPath expression.
-
Click OK.