This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > February 2004 > XPath expression to find all element nodes in a subtree?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
XPath expression to find all element nodes in a subtree?
|
|
|
| I am having trouble composing the XPath expression which will find all element nodes beneath a given node. These element nodes are probably not children, but they might be grandchildren or buried even deeper in the DOM tree. I know that I can use the //
notation to get all elements within the document, but it would be more useful to prune this list to only those element nodes beneath a prescribed node. Can you provide any help? Thanks.
b
| |
|
| Sounds like,
"interested_node//all_the_sub_nodes""
--
Pohwan Han, Microsoft MVP, ASP/ASP.Net, Korea
Have a nice day.
"Biff" <anonymous@discussions.microsoft.com> wrote in message
news:EFDA6B75-838A-42D3-8FA8-751B902A1D92@microsoft.com...
> I am having trouble composing the XPath expression which will find all
element nodes beneath a given node. These element nodes are probably not
children, but they might be grandchildren or buried even deeper in the DOM
tree. I know that I can use the // notation to get all elements within the
document, but it would be more useful to prune this list to only those
element nodes beneath a prescribed node. Can you provide any help? Thanks.
>
> b
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|