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?
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to