[Lazarus] Why was XML format chosen for storing settings in Lazarus IDE?

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jun 18 14:45:50 CEST 2010


On Fri, 18 Jun 2010 14:30:19 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> On 18/06/2010, Mattias Gaertner wrote:
> >
> >> * Not all code in Lazarus IDE uses the same XML read/write code
> >
> > What do you mean?
> 
> See the examples of reading/writing to XML (all actual code from the
> IDE) posted earlier. Two very different methods are being used. I
> vaguely remember seeing a 3rd method as well somewhere.

There are two ways: the backend independent TConfigStorage, which
by default uses TXMLConfig and using TXMLConfig directly.
The IDEIntf only provides the TConfigStorage. 
For the code there is no difference except that there are some
more utility functions for writing lists and trees to xmlconfig.

Mattias




More information about the Lazarus mailing list