Options

InStream data type

hydharthydhart Member Posts: 20
Hi,

I have some code using InStream datatype to handle webservices.

InStr := httpResponse.GetResponseStream;

WHILE NOT InStr.EOS DO BEGIN
//some statement;
END;

xmlDoc.Load(InStr);

xmlDoc -> dotnet xml document

the code return an error saying 'root element is missing'. If i'm not looping InStr before Load, it doesn't return any error.

Does InStream cannot used twice? I want to use InStream because I need to do some process data inside that InStream and then load it to the XML.

and yes webservices returned an XML.
Sign In or Register to comment.