Using xml: xpath – how to select every character between an opening and closing tag <example> </example> on newest questions tagged xml – Stack Overflow

Hello i am programming in Java and..

I have an xml file and I am thinking of using xpath to grab every character between the elements in the code below: I was wondering how would this be done in xpath? I do not want to parse it because between the tags are lots of other tags and attributes and text..

<book>
 <book element 1>
  ........
 </book element 1>

 <book element 2>
  <DATA>.............
  ..............
  ...........
  </DATA>
 </book element 2>
</book>

See Answers


source: http://stackoverflow.com/questions/6764383/xpath-how-to-select-every-character-between-an-opening-and-closing-tag-exampl
Using xml: using-xml



online applications demo