My goal is to use wininet.dll to submit POST variables to a webpage and download the contents of an XML file in return.
I can successfully submit my variables and I have my XML returned in string form. I would like to keep this in string form, inside the AutoIT script, but I have not found any methods that can directly parse a string, they can only parse files.
So, with a file temporarily created, using AutoIT's FileWrite() function, I am using the XMLDomWrapper script found elsewhere in the forums to parse the XML file.
However, for whatever reason, the string have is not correctly formatted. It looks exactly as I want it to:
<?xml version="1.0"?><output><msg>Hello World!</msg></output>
But, when i pass it to the XML parser, the _GetFirstValue function fails to parse the string, returning 0.
If I manually type in the contents of the file (vs downloading it from the internet), it works perfectly.
Do you all have any suggestions as to why the string I am getting from my webpage looks okay, but for whatever reason will not work when run through the XML parser?
If you know of a way that I can directly parse my string, without having to save a file, that would be the best solution for me.
You assistance is much appreciated. Thank you!