I've got the following structured XML file:
<w:document>
<w:body>
<w:p>
<w:r>
<w:t/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:instrText/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:instrText/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t/>
</w:r>
</w:p>
</w:body>
</w:document>
and I'm trying desperately to find an XPath expression to select all <w:t>
nodes that are between two <w:instrText>
nodes. <w:t>
nodes basically appear freely all around the XML document, but I'm only interested in those between two <w:instrText>
nodes.
Any help is greately appreciated.