From: Anthony G <Ant...@gm...> - 2007-02-05 08:42:42
|
Can any one recommend a tutorial site or documentation on using XPATH and SelectNodes with Tdom, i'm playing with the traversal of nodes and am not familiar with the syntax. one example is lets say I have this basic xpath structure /Level1/A/a/blah/blah... /Level1/A/b/blah/blah... /Level1/A/c/blah/blah... ... /Level1/B/a/blah/blah... /Level1/B/b/blah/blah... /Level1/B/c/blah/blah... and what I want to do is put together a query that will return the nodes /Level1/A/ , /Level1/B/ , etc. I dont want leaf nodes, just a list of the Nodes say A, B, C, ..., (2nd level nodes)... so that I can pass this list of nodes to a function for processing :) I know this is a basic question and there has to be a good site that would maybe go over this and some other basic queries too, if u can point me in that direction too that would be great. thanks for your time, -Anthony |