https://bugzilla.novell.com/show_bug.cgi?id=469324
Summary: XmlReader.ReadContentAsString throws
InvalidOperationException when element is empty
Classification: Mono
Product: Mono: Class Libraries
Version: 2.2.x
Platform: x86
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
Created an attachment (id=267614)
--> (https://bugzilla.novell.com/attachment.cgi?id=267614)
Test program to reproduce the exception.
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5)
Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5
The method XmlReader.ReadContentAsString() throws
System.InvalidOperationException: Node type EndElement is not supported in this
operation. (line 1, column 9)
when the element is empty.
To be consistent with MS.NET, it should return an empty string.
Reproducible: Always
Steps to Reproduce:
Compile and run the attached test program.
Actual Results:
Throws System.InvalidOperationException.
Expected Results:
Should return an empty string, like MS.NET does.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs