Thanks, you saved my ass man ;)
There is too few information on that functions... sometime programming
with lazarus i feel blind.
Where can i found a manual with all Lazarus functions, and where can i
search if i don't find anything there?
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
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives