[Home] [By Thread] [By Date] [Recent Entries]
The != operator compares the values (content) of nodes, not their
identity or their name.
You could use //tag2[not(parent::tag1)] or //*[not(self::tag1)]/tag2 Michael Kay Saxonica On 23/06/2010 07:51, Fabien Tillier wrote: Hi List. Suppose I get a (simple) XML <xml> <tag1> <tag2> <tag3/> <tag3/> </tag2> <tag2> <tag3/> <tag3/> <tag3/> </tag2> </tag1> <tag2> <tag3/> <tag3/> </tag2> <tag2> <tag3/> <tag3/> <tag3/> </tag2> </xml>
|

Cart



