Lets take an example :-)
And lets assume that we are considering the book node to be the selected node
Originally posted by senthil rajan:
child::*
will select only <title>, <name>, <price>
Originally posted by senthil rajan:
descendant::*
will select <title>, <name>,
<first>, <last>,<price>
"child" will select only immediate child elements (that are directly under book element)
"descendant" will slect all elemnts under <book> irrespective of how deep they are nested !!
Hope that helps
[ January 01, 2006: Message edited by: Hari Vignesh Padmanaban ]
[ January 01, 2006: Message edited by: Hari Vignesh Padmanaban ]