My questions is regarding the end part, how do I write that to check an elements value as opposed to the specific attribute? The specific element that I want to check is <PK> and I want to evaluate it against fk.

Hi, There are no elements in the newly defined XML that I am using. The pkid value is now determined within a fully formed pk element. It is that value that I would like to compare against fk. Thanks.
–
Darren YoungFeb 18 '11 at 15:10

Have it working now taking away the @sign like you said, but with the slight change to the code "tables/table/field/pk['{0}']" Thanks.
–
Darren YoungFeb 18 '11 at 15:11