From within a .vbs program, I call an API which returns to me as a return code an XML string.
There are only certain 'element' values that I need to retrieve from the string, and I know there must be a better way of doing it than manually searching through a string of characters for what I want.
Here's a simplified version of my XML string:
<NUMBER_PROCESSED> 4 </NUMBER_PROCESSED>
<NUMBER_REQUESTED> 4 </NUMBER_REQUESTED>
So I currently have this XML return code assigned to a variable, as follows:
returnCode = object.methodThatReturnsXMLResult()
Now, can I somehow put the contents of 'returnCode' (the XML string above) into an XML DOM and then query it for the values of, lets say, <NUMBER_PROCESSED> and/or <NUMBER_REQUESTED> ?
Code/syntax to do this is much appreciated!