[Lazarus] Docking and Layout managers
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Sun Feb 8 07:50:50 CET 2009
I'm trying to read an RSS feed using XMLread.
This example works when i compile to Win32, however for winCE/KOL it shows
me an acess violation.
path := extractfilepath(Paramstr(0))+'tmp1.txt';
>
h.SaveToFile(path);
ReadXMLFile(Documento, path);
Memo1.Clear;
// usando as propriedades FirstChild e NextSibling
Child := Documento.DocumentElement.FirstChild;
Memo1.add(int2str(Child.ChildNodes.Count));
while Assigned(Child) do
begin
Memo1.Add(Child.NodeName + ' ' + Child.Attributes.Item[0].NodeValue);
// usando método ChildNodes
with Child.ChildNodes do
try
for j := 0 to (Count - 1) do
Memo1.Add(Item[j].NodeName + ' ' + Item[j].FirstChild.NodeValue);
finally
Free;
end;
Child := Child.NextSibling;
end;
Documento.Free;
Anyone knows what's the reason for this?
Thanks, Joni Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20090204/37a10bcc/attachment-0007.html>
More information about the Lazarus
mailing list