Show Table of Contents
11.12. XPath and Namespaces
An XPath expression is a feature that searches through messages and extracts data from them.
To use namespaces in Xpath, specify which namespace prefixes are to be used in the XPath expression. These prefixes are specified in a comma-separated list in the following format:
prefix=uri,prefix=uri.
XPath Namespace-aware Statements:
xpathMatch expr "<expression>" use namespaces "<namespaces>"xpathEquals expr "<expression>", "<value>" use namespaces "<namespaces>"xpathGreaterThan expr "<expression>", "<value>" use namespaces "<namespaces>"xpathLowerThan expr "<expression>", "<value>" use namespaces "<namespaces>"
Note
Make sure these expressions have the
expr at the beginning to stop them from clashing with non-XPath aware statements.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.