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

Atsushi Eno atsushi at ximian.com
Wed Jan 30 13:53:58 EST 2008


Hello,

I'm not sure if it really happened or not. It does not happen with
trunk version of sys.xml.linq anyways.

Atsushi Eno

Andrew Koryavchenko wrote:
> 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 at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list