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

public class SimpleXPathParser extends Object
Partially parses XPath expressions. ("Partially" meaning that we are not interested in the full XPath grammar: Uninteresting parts are left as "unparsed string nodes" as long as we are able to parse the interesting parts.)

An XPath expression, given as a string, is transformed into a tree of nodes (instances of subclasses of SimpleXPathParser.Node).

We are only interested in strings, comments, round- and square-bracket-expressions. Any other substring of the expression is concatenated into a node of type SimpleXPathParser.UnparsedStringNode.

See the XPath 2.0 spec at ... .