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

Rule/@action="Required"/..
but it's more typical (and flexible) to uses a subquery
Rule[@action="Required"]

If you're familiar with SQL, square brackets are kinda like an SQL WHERE clause.