[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DotGNU]System.Xml
From: |
Simon Guindon |
Subject: |
[DotGNU]System.Xml |
Date: |
Mon, 14 Jul 2003 14:34:59 -0400 |
Well I decided to take a stab at one of the System.Xml bugs I posted
that Gopal found last week about ReadAttributeValue never returning
false. So I took a look and ReadAttributeValue returns true no matter
what, theres no evaluation for returning false. I'm not too sure what
to base the true/false decision on but I took a stab and ended up with
this:
if (attributeIndex < attributes.Count)
{
value = attributes[attributeIndex].Value;
nodeType = XmlNodeType.Text;
return true;
}
else
{
return false;
}
But it doesn't seem to work. So I further added some Console.WriteLine
debug outputting in Gopal's test case to specifically see in what order
the loops are happening, and when they break the loops in .NET so I can
see the read behavior. Basically what I come up with is
ReadAttributeValue on .NET would return true, false, true, false, true,
false. So I'm not too clear how to make that decision in the
ReadAttributeMethod for us.
I was hoping the mailing list could perhaps give some insight. I've
attached gopal's testcase modified with my outputting and here are my
results on .NET to guide by:
True
1.0
False
READ
True
http://etherx.jabber.org/streams
False
True
9ee4bd1a
False
True
jabber:client
False
True
gopal
False
READ
-----------------------------
Simon Guindon
Nureality Networks
www.nureality.ca
xml9.cs
Description: Text document
- [DotGNU]System.Xml,
Simon Guindon <=