Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-02

READXMLFILE WINCE/KOL

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jóni Silva

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://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090204/37a10bcc/attachment.html

Reply by email