java.lang.Object
com.predic8.membrane.core.interceptor.xmlcontentfilter.XMLContentFilter

@ThreadSafe public class XMLContentFilter extends Object
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 Details

  • Method Details

    • removeMatchingElements

      public void removeMatchingElements(Message message)
      Removes parts of an XML document based on an XPath expression.

      If the message is not valid XML, it is left unchanged.