public class TestXPathCompiler
extends java.lang.Object
| Constructor and Description |
|---|
TestXPathCompiler() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
compile(java.lang.String pattern)
Compiles one XPath pattern, then extracts the list of XPathRules and
displays this using the toString() method of XPathRule.
|
static void |
main(java.lang.String[] args)
Demonstration program to illustrate the compilation of XPath query
patterns.
|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - are ignored.java.lang.Exception - if an error occurs.private static void compile(java.lang.String pattern)
throws SyntaxError
pattern - an XPath query pattern.SyntaxError - if the XPath syntax is faulty.