q: ((exists child nodes whose (exists node values whose (it is “4”) of attributes of it and exists node values whose (it is “061”) of attributes of it) of it) AND (exists child nodes whose (exists node values whose (it is “4”) of attributes of it and exists node values whose (it is “053”) of attributes of it) of it)) of child node of xml document of file “c:\test.xml”
A: True
Which leads you to:
q: if (((exists child node whose (exists node values whose (it is “4”) of attributes of it and exists node values whose (it is “061”) of attributes of it) of it) AND (exists child node whose (exists node values whose (it is “4”) of attributes of it and exists node values whose (it is “053”) of attributes of it) of it)) of child node of xml document of file “c:\test.xml”) then “foo” else “bar”
A: foo
Note that this will likely fail if your source XML is more complicated than your example. In particular, note that “child node of xml document” assumes that there is one child node of and no other nodes.