• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2========================
3Expression: /child::EXAMPLE
4Object is a Node Set :
5Set contains 1 nodes:
61  ELEMENT EXAMPLE
7    ATTRIBUTE prop1
8      TEXT
9        content=gnome is great
10    ATTRIBUTE prop2
11      TEXT
12        content=& linux too
13
14========================
15Expression: /child::*
16Object is a Node Set :
17Set contains 1 nodes:
181  ELEMENT EXAMPLE
19    ATTRIBUTE prop1
20      TEXT
21        content=gnome is great
22    ATTRIBUTE prop2
23      TEXT
24        content=& linux too
25
26========================
27Expression: /child::EXAMPLE/child::head
28Object is a Node Set :
29Set contains 1 nodes:
301  ELEMENT head
31
32========================
33Expression: /child::EXAMPLE/child::*
34Object is a Node Set :
35Set contains 6 nodes:
361  ELEMENT head
372  ELEMENT chapter
38    ATTRIBUTE id
39      TEXT
40        content=chapter1
413  ELEMENT chapter
42    ATTRIBUTE id
43      TEXT
44        content=chapter2
454  ELEMENT chapter
46    ATTRIBUTE id
47      TEXT
48        content=chapter3
495  ELEMENT chapter
50    ATTRIBUTE id
51      TEXT
52        content=chapter4
536  ELEMENT chapter
54    ATTRIBUTE id
55      TEXT
56        content=chapter5
57
58========================
59Expression: /child::EXAMPLE/child::head/child::title
60Object is a Node Set :
61Set contains 1 nodes:
621  ELEMENT title
63
64========================
65Expression: /child::EXAMPLE/child::head/child::title/child::text()
66Object is a Node Set :
67Set contains 1 nodes:
681  TEXT
69    content=Welcome to Gnome
70
71========================
72Expression: /child::EXAMPLE/child::head/node()
73Object is a Node Set :
74Set contains 3 nodes:
751  TEXT
76    content=
772  ELEMENT title
783  TEXT
79    content=
80
81========================
82Expression: /descendant::title
83Object is a Node Set :
84Set contains 6 nodes:
851  ELEMENT title
862  ELEMENT title
873  ELEMENT title
884  ELEMENT title
895  ELEMENT title
906  ELEMENT title
91
92========================
93Expression: /descendant::p/ancestor::chapter
94Object is a Node Set :
95Set contains 5 nodes:
961  ELEMENT chapter
97    ATTRIBUTE id
98      TEXT
99        content=chapter1
1002  ELEMENT chapter
101    ATTRIBUTE id
102      TEXT
103        content=chapter2
1043  ELEMENT chapter
105    ATTRIBUTE id
106      TEXT
107        content=chapter3
1084  ELEMENT chapter
109    ATTRIBUTE id
110      TEXT
111        content=chapter4
1125  ELEMENT chapter
113    ATTRIBUTE id
114      TEXT
115        content=chapter5
116
117========================
118Expression: //p[1]
119Object is a Node Set :
120Set contains 5 nodes:
1211  ELEMENT p
1222  ELEMENT p
1233  ELEMENT p
1244  ELEMENT p
1255  ELEMENT p
126
127========================
128Expression: //p[0 div 0]
129Object is a Node Set :
130Set contains 0 nodes:
131
132========================
133Expression: //p[100000000000000000000]
134Object is a Node Set :
135Set contains 0 nodes:
136
137========================
138Expression: //p[-100000000000000000000]
139Object is a Node Set :
140Set contains 0 nodes:
141