Above is the xml file that i have and I’m trying to write an “audit pass” or “failed” relevance to check for the existence of this attribute “Datalocator” and to check if the value is actually “50”. In this case, the first level node is “Config” and the child node is “CustomPs”. Please help. thanks
I am not an XML guru and so I am sure there might be a better way to do this, but I believe this will work:
Q: (if (it=“50”) then “audit pass” else “failed”) of node values of attributes “value” of selects “/Config/CustomPs/CustomP” whose (node value of attribute “name” of it as lowercase = “datalocator”) of xml document of file "C:\test.xml"
A: audit pass