|
Hello Wing Yew, yes, that's what I'm looking for. Do you have any idea, why xo.selectPath("//[EMAIL PROTECTED]/@id]")
doesn't work (for my XmlObject xo with ID-Attribute 'id')?Or is there some better why to receive all nodes (with idRef-Attribute) refering to my node xo? - thanks for your help - Siggi Wing Yew Poon wrote: Siggi, I think you're right. I guess what you need is a variable bound to the node represented by the XmlObject that you're executing the selectPath() from. "$this" is supposed to be that. - Wing Yew -----Original Message----- From: Siegfried Baiz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 15, 2006 3:09 AM To: [email protected] Subject: Re: selectPath with FilterExpression using $this For the _expression_ xo.selectPath("//[EMAIL PROTECTED]/@id]") I get an empty result-array. Doesn't the left- and the right-hand-side of that filter-_expression_ always refer to the same node, which would mean, that the xpath-engine tries to select any nodes with the two attributes @idRef & @id having the same value? - Siggi -Siggi, can you try xo.selectPath("//[EMAIL PROTECTED]/@id]"); and see if that works? - Wing Yew -----Original Message----- From: Siegfried Baiz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 14, 2006 10:11 AM To: [email protected] Subject: selectPath with FilterExpression using $this Hello, for a given XmlObject xo with an ID-Attribute 'id', I've tried to launch the following xpath-_expression_: xo.selectPath("//[EMAIL PROTECTED]/@id]") in order to get all nodes (with idRef-Attribute) refering to my nodexo. |
- selectPath with FilterExpression using $this Siegfried Baiz
- RE: selectPath with FilterExpression using $this Wing Yew Poon
- Re: selectPath with FilterExpression using $... Siegfried Baiz
- RE: selectPath with FilterExpression using $this Wing Yew Poon
- Re: selectPath with FilterExpression using $... Siegfried Baiz
- RE: selectPath with FilterExpression using $this Wing Yew Poon
- Re: selectPath with FilterExpression using $... Siegfried Baiz
- RE: selectPath with FilterExpression using $this Wing Yew Poon
- RE: selectPath with FilterExpression using $this Cezar Andrei
- Re: selectPath with FilterExpression using $... Siegfried Baiz
- RE: selectPath with FilterExpression using $this Radu Preotiuc-Pietro
- RE: selectPath with FilterExpression using $this Radu Preotiuc-Pietro
- RE: selectPath with FilterExpression using $this Lawrence Jones
- Re: selectPath with FilterExpression using $... Siegfried Baiz
- RE: selectPath with FilterExpression using $this Lawrence Jones

