Re: [xml] xpath query



On 28.06.2004 17:22, Sir Pendenaor wrote:

Hello everyone,

I need some help to make an XPATH query which
retrieves all nodes between two.

Example:
...
<Mark type='start'/>
<toto>
 <tata>...</tata>
</toto>
...
<tutu/>
<Mark type='end'/>
...

How i query for all nodes between two TAG <mark> ?
or is it impossible :( ?
Thanks...

Off-topic it is, but here it goes:

  //*[ancestor-or-self::*[
      preceding-sibling::Mark[ type="start"] and
        following-sibling::Mark[ type="end"]]]


Ciao,
Igor



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]