[Mono-bugs] [Bug 676020] New: ReadToNextSibling does not move as expected
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Mar 1 13:43:25 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=676020
https://bugzilla.novell.com/show_bug.cgi?id=676020#c0
Summary: ReadToNextSibling does not move as expected
Classification: Mono
Product: Mono: Class Libraries
Version: 2.10.x
Platform: All
OS/Version: openSUSE 11.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: flaker.kapper at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=416872)
--> (http://bugzilla.novell.com/attachment.cgi?id=416872)
Test case solution
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13
I am reading an XML file with Key,Value pairs.
<SerializableStringDictionary>
<SerializableStringDictionary>
<DictionaryEntry Key="Key1" Value="Value1"/>
<DictionaryEntry Key="Key2" Value="Value2"/>
<DictionaryEntry Key="Key3" Value="Value3"/>
</SerializableStringDictionary>
</SerializableStringDictionary>
The code relies on ReadToNextSibling to find the next DictionaryEntry. But it
fails because no other sibling is found so I only get one line from the whole
config.
This works as intended in MS Net runtime.
Reproducible: Always
Steps to Reproduce:
Please see the attached solution.
Actual Results:
Only one setting line is read. From the sample. The output I get is:
Start test
Key: Key1 Value: Value1
Press enter to finish
Expected Results:
Start test
Key: Key1 Value: Value1
Key: Key2 Value: Value2
Key: Key3 Value: Value3
Press enter to finish
As a workaround porting this application I am using ReadToFollowing() which
seems to work ok on both runtimes.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list