On Sat, Jun 19, 2010 at 02:55, Hans-Peter Diettrich
<[email protected]> wrote:
> Graeme Geldenhuys schrieb:
>
>> I personally don't like referencing a value via something like...
>>
>>  GetXMLNode('\CompilerOptions\SomeTab\SomeValue').Text
>
> IMO the ...CompilerOptions should be represented by an XML node, that is
> handed to the reader and writer methods. The dedicated methods add their
> structure to that node, ignoring where exactly that node sits in the overall
> document tree.

That is better, but a single aXMLConfig.ReadObject(aCompilerOptions)
call is better still --
look at examples in editoroptions.pp

-- 
Alexander S. Klenin

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to