It is not possible. You will need to perform that kind of selection 
by yourself (i.e. transversing the xml tree)

--- In [email protected], "Shailesh Mangal" 
<[EMAIL PROTECTED]> wrote:
>
> All,
> 
>    I have a following xml structure retrieved from server
> <root>
>    <parent name="good">
>       <child name="abc"/>
>       <child name="cba"/>
>       <child name="abc"/>
>    </parent>
>    <parent name="notGood">
>       <child name="abc"/>
>       <child name="def"/>
>       <child name="fed"/>
>    </parent>
> </root>
>  
> and I want to make a selection based on the attribute of child. e.g.
> for child with name "abc", get a result as..
> <root>
>    <parent name="good">
>       <child name="abc"/>
>       <child name="abc"/>
>    </parent>
>    <parent name="notGood">
>       <child name="abc"/>
>    </parent>
> </root>
> 
> I tried following, 
>  result..child.(@name=="abc")
>  result.root.parent.child.(@name=="abc")
> but I end up getting following 
>   <child name="abc">
>   <child name="abc">
>   <child name="abc">
> 
> Any suggestions?
> sxm
>


Reply via email to