On Mon, 15 Jan 2007, [EMAIL PROTECTED] wrote:
> Hi... i'm going crazy to create a TXMLDocument from a string.
What is the problem ?
Var
S : TStringStream;
XML : TXMLDocument;
begin
S:=TStringStream.Create(MyXMLString);
Try
S.Position:=0;
XML:=Nil;
ReadXMLFile(XML,S); // Complete XML document
// Alternatively:
ReadXMLFragment(AParentNode,S); // Read only XML fragment.
Finally
S.Free;
end;
end;
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives