Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   simple xpath question (http://www.velocityreviews.com/forums/t166736-simple-xpath-question.html)

Timo Nentwig 02-27-2004 10:55 AM

simple xpath question
 
Hi!

I want to select all FOO which do not have a BAR child. The following is
obviously wrong:

//FOO[child::node() not BAR]

Can somebody help?

Thanks in advance
Timo

Philippe Poulard 02-27-2004 11:23 AM

Re: simple xpath question
 
Timo Nentwig wrote:
> Hi!
>
> I want to select all FOO which do not have a BAR child. The following
> is obviously wrong:
>
> //FOO[child::node() not BAR]
>
> Can somebody help?
>
> Thanks in advance
> Timo


try this :
//FOO[not(BAR)]

--
Cordialement,

///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------


All times are GMT. The time now is 05:37 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.