XPath expression pattern matcher