From an external API I'm getting a XML file using Synapse, Oauth1/GetBody.
The file is saved to disk (as a string, Textfile) and then read the diskfile:
Using TXMLConfig:
var iDoc : TXMLDocument;
Child, gChild:TDOMNode;
...
ReadXMLFile(iDoc, FilePath);
Child := iDoc.DocumentElement.FirstChild;
while Assigned(Child) do
begin .....
This works great, but to avoid use of diskfile I 'v spend some hours to figure out how to read the input from the API as a stream.
I suppose I have to replace the "ReadXMLFile" but can't find "how to".
May be somebody can give me an idea.