tags:

views:

79

answers:

1

consider:

text 1

text 2

text 3

how can you express the textnode in xpath ?

A: 

As far as i know , all text in a node are collectively grouped up as a single text node. They are not hierarchical so there wont be more than 1 text node in any single element.

You might need to parse the text yourself using an xpath string function

Andrew Keith
This is not entirely correct. All *consecutive* text nodes in a node are collapsed. If they are interspersed with other nodes, they are treated separately.
Tomalak