Class XMLContentFilter
java.lang.Object
com.predic8.membrane.core.interceptor.xmlcontentfilter.XMLContentFilter
Takes action on XML documents based on an XPath expression. The only action
as of writing is
removeMatchingElements(Message).
As even Java 7 only supports XPath 1.0, this is what this class supports.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveMatchingElements(Message message) Removes parts of an XML document based on an XPath expression.
-
Constructor Details
-
XMLContentFilter
- Parameters:
xPath- XPath 1.0 expression- Throws:
XPathExpressionException
-
-
Method Details
-
removeMatchingElements
Removes parts of an XML document based on an XPath expression.If the message is not valid XML, it is left unchanged.
-