[Migrated content. Thread originally posted on 13 July 2006]
Any ideas woudl be most helpful,I retrieved some xml data using the MSXML50.DEF object. The data sits in @responseText of the XMLHTTP50 Object. Since it is VERY large I want to get it into DOMDocument50 Object and then use @Save to save it out to a file.
Here is the code snippet:
CREATE @DOMDocument50 HANDLE IN hXML-DOCUMENT.
CREATE @XMLHTTP50 HANDLE IN hXML-HTTP.
MODIFY hXML-HTTP @Open("POST", WS-URL, 0).
MODIFY hXML-HTTP @setRequestHeader("Content-Type", "application/x-www-form-urlencoded").
MODIFY hXML-HTTP @Send (WS-DATA-TO-SEND).
INITIALIZE WS-STATUS.
INQUIRE hXML-HTTP @Status IN WS-STATUS.
IF WS-STATUS = 200
**** I want to avoid putting this to a variable first and just go straight into the other object, is this possible?
INQUIRE hXML-HTTP @responseText IN WS-XML-DATA
MODIFY hXML-DOCUMENT @LoadXML (WS-XML-DATA) GIVING WS-RETURNVAL.
MODIFY hXML-DOCUMENT @Save (WS-FULL-FILENAME).



