Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 1 | |
2 | |||
3 | |||
14 | |||
15 | |||
16 | |||
17 | %entities; |
||
18 | ]> |
||
19 | |||
20 | |||
21 |
|
||
22 |
|
||
23 | |||
24 | The XPathEvaluator can create a "XPathExpression" using the method |
||
25 | "createExpression(expression, resolver)". |
||
26 | |||
27 | Retrieve the DOM document on which the |
||
28 | 'createExpression("12a", null)' method is |
||
29 | invoked with the document element. The method should fail to create |
||
30 | pre-compiled expression and throws |
||
31 | XPathException.INVALID_EXPRESSION_ERR |
||
32 | since "12a" is not an XPath expression. |
||
33 | |||
34 |
|
||
35 | |||
36 | |||
37 | |||
38 | &vars; |
||
39 | |||
40 | |||
41 | &findXPathEvaluator; |
||
42 | |||
43 | |||
44 | |||
45 | |||
46 | expression='"12a"' resolver='nullNSResolver' /> |
||
47 | |||
48 | |||
49 | |||
50 | !ENTITY>!DOCTYPE>!-- |