Hi, the new XMLValue program seems to work, however I'm having some trouble extracting the node that I require. The API returns a JSON string, in the format:
{
"99142989543d4e6fbe5b8acffa5766eb":{
"tags":[ ],
"shadowprotect":{
"status": "queued"
},
"name":"Test",
"machine_details":{ },
"imagemanager":{ },
"timezone":3600,
"org":"Default Organization",
"status":"ok",
"lost_contact":0
}
}
When I try and get the status node using -n=99142989543d4e6fbe5b8acffa5766eb/status I get an error 'Expression must evaluate to a node-set.' If i set -n=status it returns the value of a node called status that is inside the shadowprotect object, and not the status value that is inside the 99142989543d4e6fbe5b8acffa5766eb object.
Could you tell me the correct way to format the -n= parameter to get the required node?
Thanks!
Add comment