in reply to Finding Data based on attribute help!
XPaths are like file system paths. If the last component of a path is a directory, it's a directory path. If the last component of a path is a file, it's a file path.
In your case, the last component ("test") is an attribute, so you're selecting an attribute. You could select its parent
but it's more typical (and flexible) to uses a subqueryRule/@action="Required"/..
Rule[@action="Required"]
If you're familiar with SQL, square brackets are kinda like an SQL WHERE clause.
|
|---|