[Mono-dev] System.Xml.Linq: is it bug or not?

Andrew Koryavchenko avk at rsdn.ru
Wed Jan 30 04:36:08 EST 2008


Hello

Mono System.Xml.Linq implementation ain't work with Microsoft XmlReader. For
example, running this code on .NET with mono xlinq:

XDocument.Load(new StringReader("<data/>"))

cause an exception:

Unhandled Exception: System.NotSupportedException: Node type None is not
supported
   at System.Xml.Linq.XNode.ReadFrom(XmlReader r) in
C:\Work\Mono\XLinq\System.Xml.Linq\XNode.cs:line 177
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader reader) in
C:\Work\Mono\XLinq\System.Xml.Linq\XContainer.cs:line 191
   at System.Xml.Linq.XDocument.ReadContent(XmlReader reader) in
C:\Work\Mono\XLinq\System.Xml.Linq\XDocument.cs:line 150
   at System.Xml.Linq.XDocument.LoadCore(XmlReader reader) in
C:\Work\Mono\XLinq\System.Xml.Linq\XDocument.cs:line 135
   at System.Xml.Linq.XDocument.Load(TextReader reader, LoadOptions options)
in C:\Work\Mono\XLinq\System.Xml.Linq\XDocument.cs:line 114
   at System.Xml.Linq.XDocument.Load(TextReader reader) in
C:\Work\Mono\XLinq\System.Xml.Linq\XDocument.cs:line 106
   at MonoXLinqBug.Program.Main(String[] args) in
C:\Work\Temp\MonoXLinqBug\Program.cs:line 10


Is it bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080130/64ae0881/attachment.html 


More information about the Mono-devel-list mailing list