XML and InStream

Hi everybody, I have the following situation. One of my functions will provide me with a reference to an XML Document: _XMLDocument Automation ‘Microsoft XML, v3.0’.DOMDocument (I am reading from a message queue using CPHandler). Now for the rest of the stuff I need to do I need to get this XML into an InStream. The obvious way is to save the XML to a file, open the file and the create an instream from it. But I would like to see if there is another way to do this without going out to the harddrive. Any ideas are appreciated.[:)] Cristi

What kind of refference do you have to the XML document ? If if is a file, you can load it directly: xmlDoc.load(Filename); If it is in a BLOB-field, you can use the folowing code: Tablename.“BLOB-FIELDname”.CREATEINSTREAM(InStreamVar); xmlDoc.load(InStreamVar)