Defining Namespace Prefixes Used in Path Range Indexes and Fields
- Last Updated: April 15, 2026
- 1 minute read
- MarkLogic Server
- Version 11.0
- Documentation
When you define a path range index over XML documents and your path uses namespace prefixes, you must pre-define any namespace bindings used in the path expression. These namespace bindings can be used by multiple path range indexes.
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.