Red Hat Training
A Red Hat training course is available for JBoss Enterprise SOA Platform
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.