ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tclxml-users
tclxml-users
[Tclxml-users] basic XPATH Query how to question
by Anthony G other posts by this author
Feb 5 2007 12:44AM messages near this date
[Tclxml-users] TclXML Build Problem on Linux | [Tclxml-users] newbie basic question using parser to extract Tag names and characterdata together...
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved