On Tue, 2 Sep 2003, Raveendranath, Rohith (LNG - AUS) wrote:

> thankx for the quick reply
>
> well is there any way to form a qury such that i can find all C markups who
> doesn't have markup B  in any of its hierarchy (ie parent or grant parent or
> grand grand parent ... any forefather)

Something like:

//C[not(preceding-sibling::B)][not(ancestor-or-self::B)]"

I would avoid using plain preceding since it is quite "heavy" operation to
do.

>
> oops am i becoming more greedy in tersm of req:
>
> Thanx
> Rohith
>
> -----Original Message-----
> From: Jarkko Moilanen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 2 September 2003 1:27 PM
> To: Raveendranath, Rohith (LNG - AUS)
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: xpath help!!!
>
>
> On Tue, 2 Sep 2003, Raveendranath, Rohith (LNG - AUS) wrote:
>
> //C[not(parent::B)]
>
> > Hi all,
> >
> > If I have an xml like :
> >
> > <A>
> >     <B>
> >             <C/>
> >     </B>
> >     <D>
> >             <C/>
> >     </D>
> >     <E>
> >             <C/>
> >     </E>
> > </A>
> >
> >
> > Is there any way of seleceting al the element C whose parent is not B -
> What
> > is the equalent Xpath
> >
> > Regards
> > Rohith
> >
> > This e-mail is for the use of the intended recipient(s) only.  If you have
> > received this e-mail in error, please notify the sender immediately and
> then
> > delete it.  If you are not the intended recipient, you must not use,
> disclose
> > or distribute this e-mail without the author's permission.  We have taken
> > precautions to minimise the risk of transmitting software viruses, but we
> > advise you to carry out your own virus checks on any attachment to this
> e-mail.
> > We cannot accept liability for any loss or damage caused by software
> viruses.
> >
>
>
> ****************************************************************
> Jarkko Moilanen          "The box said that is needs
> Researcher                Windows 95 or better... So I
> jm60697 at uta.fi         installed Linux."
> www.uta.fi/~jm60697
> GSM: +358 50 3766 927
> ****************************************************************
> * ITCM | Information Technology and Crisis Management
> * http://www.itcm.org
> ****************************************************************
>
>
>
>
>
> This e-mail is for the use of the intended recipient(s) only.  If you have
> received this e-mail in error, please notify the sender immediately and then
> delete it.  If you are not the intended recipient, you must not use, disclose
> or distribute this e-mail without the author's permission.  We have taken
> precautions to minimise the risk of transmitting software viruses, but we
> advise you to carry out your own virus checks on any attachment to this 
> e-mail.
> We cannot accept liability for any loss or damage caused by software viruses.
>


****************************************************************
Jarkko Moilanen          "The box said that is needs
Researcher                Windows 95 or better... So I
jm60697 at uta.fi         installed Linux."
www.uta.fi/~jm60697
GSM: +358 50 3766 927
****************************************************************
* ITCM | Information Technology and Crisis Management
* http://www.itcm.org
****************************************************************





Reply via email to