Re: [lazarus] XMLCFG BUG ?

2005-08-16 Thread Sebastian Günther
Sebastian Günther schrieb: Ok great, then I'll implement it now. Done. The new xmlcfg unit is committed (trunk only, so far). I've changed quite some things, so be warned that it might break existing application somewhat. The main change: You cannot specify the filename in the constructor

Re: [lazarus] XMLCFG BUG ?

2005-08-15 Thread Sebastian Günther
Mattias Gaertner schrieb: While you are thinking about it, can you give an opinion on how to fix lazarus bug 902: http://www.lazarus.freepascal.org/mantis/view.php?id=902 Yes, it is the same. I would expect, that xmlwriter should raise an exception. I have a small suggestion, or better,

Re: [lazarus] XMLCFG BUG ?

2005-08-15 Thread Mattias Gaertner
On Mon, 15 Aug 2005 22:04:35 +0200 Sebastian Günther [EMAIL PROTECTED] wrote: Mattias Gaertner schrieb: While you are thinking about it, can you give an opinion on how to fix lazarus bug 902: http://www.lazarus.freepascal.org/mantis/view.php?id=902 Yes, it is the same. I would

Re: [lazarus] XMLCFG BUG ?

2005-08-15 Thread Sebastian Günther
Mattias Gaertner schrieb: Just one question: Why should xmlcfg allow, what xml does not? I mean, I see the gain to allow numbers as identifiers, but OTOH a newbie could be mislead, that his paths are the xml paths (e.g. '1' vs '_1'). When the configs are read by other applications the paths

Re: [lazarus] XMLCFG BUG ?

2005-08-12 Thread Mattias Gaertner
On Thu, 11 Aug 2005 23:36:54 +0200 Sebastian Günther [EMAIL PROTECTED] wrote: Christian Fillion schrieb: Hi all i'm making a application tha use the xmlcfg.pp unit. I dont know if i find a bug in the xmlcfg file at procedure TXMLConfig.SetValue(const APath, AValue: String); Anyway

Re: [lazarus] XMLCFG BUG ?

2005-08-12 Thread Sebastian Günther
Mattias Gaertner schrieb: I don't know if the one letter is a problem, but token_xml.SetValue('keys/' + {'t' +} inttostr(x) + '/values' , 'some_value' ); the inttostr(x) does not create a valid xml name. The fpc xmlwriter allows it and writes it (bug), but the xmlreader does

Re: [lazarus] XMLCFG BUG ?

2005-08-12 Thread Mattias Gaertner
On Fri, 12 Aug 2005 21:51:51 +0200 Vincent Snijders [EMAIL PROTECTED] wrote: Sebastian Günther wrote: Mattias Gaertner schrieb: I don't know if the one letter is a problem, but token_xml.SetValue('keys/' + {'t' +} inttostr(x) + '/values' , 'some_value' ); the inttostr(x)

Re: [lazarus] XMLCFG BUG ?

2005-08-11 Thread Sebastian Günther
Christian Fillion schrieb: Hi all i'm making a application tha use the xmlcfg.pp unit. I dont know if i find a bug in the xmlcfg file at procedure TXMLConfig.SetValue(const APath, AValue: String); Anyway this is a small sample of the bug [...] For some reason SetValue have difficulty to

[lazarus] XMLCFG BUG ?

2005-08-10 Thread Christian Fillion
Hi all i'm making a application tha use the xmlcfg.pp unit. I dont know if i find a bug in the xmlcfg file at procedure TXMLConfig.SetValue(const APath, AValue: String); Anyway this is a small sample of the bug program xml_bug; uses SysUtils,xmlcfg; var token_xml: TXMLConfig;var x: