On Fri, 2 Nov 2007, Alvise Nicoletti wrote:
> Hi... I finished to set up everything.
>
> Lazarus is 0.9.23 well working (I had problems with printers and I just
> uninstalled the packages into the "package list")
> Fpc is 2.2.0 compiled from //svn.freepascal.org/svn/fpc/branches/fixes_2_2
> (so 2.2.0 + bugfixes).
>
> I'm getting:
> In 'file:///etc/my.xml' (line 4 pos 5): Unmatching element end tag (expected
> "</main>")
>
> The file is:
> cat /etc/my.xml
> <configurazione>
> <main>
> asd
> </main>
> </configurazione>
>
>
> Can someone try to do:
> Document := TXMLDocument.Create;
> try
> ReadXMLFile(Document, "/etc/my.xml");
> on e:exception do WriteLn(e.message);
> end;
>
> And report me back if it works or not?
Works fine here (after correcting the errors in your code) with the latest FPC.
A comment:
Your code will leak memory. The ReadXMLFile call creates an instance of
TXMLDocument and
returns that. You should not instantiate one yourself.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives