dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]System.Xml


From: minddog
Subject: Re: [DotGNU]System.Xml
Date: Mon, 14 Jul 2003 14:42:15 -0400 (EDT)
User-agent: SquirrelMail/1.4.1

> if (attributeIndex < attributes.Count)
> {
>       value = attributes[attributeIndex].Value;
>       nodeType = XmlNodeType.Text;
>       return true;
> }
> else
> {
>       return false;
> }

You should also make sure to check for attributeIndex placement... != -1

if(attributeIndex < attributes.Count && attributeIndex > -1) { ... }

Make sure to remember that <?xml parsing is in a different area and
currently isn't handled like an element.  I've been hacking out this exact
problem in the newer parser, but again its not ready for primetime so
these bugs must be fixed.  I got stumped on this one because I was
wondering where we should increment, inside ReadAttributeValue()?  because
it looks like gopal's test case will run a while loop on the function
waiting for it to turn false, but if its stationary(attributeIndex is not
inc/dec) then it will always return true.  Something to think about...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]