This selects any (indicated by the "//") element named "Variable". And filters (indicated by the code inside the "[" and "]") those "Variable" elements that possess a "Form" Attibute (indicated by the "@" before the "Form")
An alternative for your sample would be:
/Root/Variable[@Form]
Which selects only those Variables that are children (indicated by the second "/") of a document root (indicated by the first "/") called "Root"
Just to add a little more explanation to my answer :-)
Main Topics
Browse All Topics





by: ChristoferDutzPosted on 2009-09-10 at 04:45:08ID: 25299208
The XPath is:
//Variable[@Form]