XPath tree view of longer-demo.xml
root
  
|
  
|
___
element
 
main
    
  
  
|
    
  
  
|
___
processing instruction
 target=
PI
 instruction=
first PI in document 
    
  
  
|
    
  
  
|
___
element
 
a
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
text
 
 first text chunk
\n
      
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
 
 first comment string  
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
text
 
\n
      second text chunk
\n
      
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
element
 
b
    
  
  
|
  
 
  
|
  
 
  
|
  
\___
attribute
 
link
 = 
ref
    
  
  
|
  
 
  
|
  
 
  
|
    
  
  
|
  
 
  
|
  
 
  
|
___
element
 
c
    
  
  
|
  
 
  
|
  
 
    
  
  
|
    
  
  
|
  
 
  
|
  
 
    
  
  
|
___
text
 
 text inside c inside b 
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
text
 
\n
      third text chunk
\n
  
    
  
  
|
    
  
  
|
___
element
 
a
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
text
 
\n
     fourth text chunk
\n
     
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
processing instruction
 target=
proc-inst
 instruction=
"foo=boo" fee=bee 
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
text
 
\n
     fifth text chunk
\n
     
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
processing instruction
 target=
PI
 instruction=
second PI in document 
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
element
 
c
    
  
  
|
  
 
  
|
  
 
  
|
  
\___
attribute
 
link
 = 
feeble
    
  
  
|
  
 
  
|
  
 
  
|
    
  
  
|
  
 
  
|
  
 
  
|
___
text
 
 
\n
        sixth text chunk 
\n
\t
    
  
  
|
  
 
  
|
  
 
  
|
    
  
  
|
  
 
  
|
  
 
  
|
___
 
 a deeply nested comment 
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
element
 
b
    
  
  
|
  
 
  
|
  
 
  
|
    
  
  
|
  
 
  
|
  
 
  
|
___
element
 
c
    
  
  
|
  
 
  
|
  
 
    
  
  
|
    
  
  
|
  
 
  
|
  
 
    
  
  
|
___
element
 
d
    
  
  
|
  
 
  
|
  
 
    
  
    
  
  
|
    
  
  
|
  
 
  
|
  
 
    
  
    
  
  
|
___
element
 
e
    
  
  
|
  
 
  
|
  
 
    
  
    
  
    
  
   
  
\___
attribute
 
link
 = 
foo
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
text
 
\n
     seventh text chunk
\n
     
    
  
  
|
  
 
  
|
    
  
  
|
  
 
  
|
___
element
 
b
    
  
  
|
  
 
    
  
  
|
  
\___
attribute
 
class
 = 
myElem
    
  
  
|
  
 
    
  
  
|
    
  
  
|
  
 
    
  
  
|
___
text
 
 eighth chunk 
    
  
  
|
    
  
  
|
___
element
 
dummy
    
  
    
  
  
|
    
  
    
  
  
|
___
element
 
fun
    
  
    
  
    
  
  
|
    
  
    
  
    
  
  
|
___
element
 
e
    
  
    
  
    
  
    
  
  
|
    
  
    
  
    
  
    
  
  
|
___
text
 
 deeply nested 'e' element