On Fri, Aug 10, 2007 at 06:52:15PM +0200, Mattias Gaertner wrote:
> Marco van de Voort <[EMAIL PROTECTED]> wrote:
> > +    end;
> >    //CheckHeapWrtMemCnt('TXMLConfig.GetValue H');
> >    //writeln('TXMLConfig.GetValue END Result="',Result,'"');
> >  end;
> 
> This would mean '1000' becomes the default value for all attributes,
> right?

Yes.

> For example GetValue('connectivity/answer_timeout/tag',2) will return
> 1000 instead of 2.

Only if there is a nodevalue. But yes, that could be a problem. 

I'm no XML wizard, which is why I actually reused code instead of writing my
own ( :-)) 

So what would be (a) more normal rule to distinguish child values from
attributes?

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to