Please provide some valid xml code. To format it properly here, copy and paste it in the comment editor, then select it and click the </> tool bar button. In the end it should look something like this:
So if I understand your original post correctly, you want to select all nodes that are named L00100and that have a Code attribute (which, in the data you provided, would find a single node with Code=00011).
I don’t believe this is possible with xmlGet(), which cannot select by attribute. One way to get around this is to use a script with XMLDOM:
var xmldoc = new ActiveXObject("Msxml2.DOMDocument.6.0");
xmldoc.async = false;
xmldoc.load(Watch.GetJobFileName());
var nodes = xmldoc.selectNodes('/Root/L00100[@Code]/@Code');
for (var i=0; i < nodes.length; i++) {
Watch.Log("Result "+(i+1)+" = "+nodes.item(i).text,2);
}
This returns a collection of nodes that match the query criteria.
If you know for sure that there can only be a single target node, you can instead use
var node = xmldoc.selectSingleNode('/Root/L00100[@Code]/@Code');
Watch.Log("Result = "+node.text,2);