It does with trunk version of System.Xml.Linq (r94351), MS .NET runtime and
MS System.Xml.dll (and all other assemblies) from .NET FW 3.5. With
System.Xml from Mono 1.2.6 all OK.

On 1/30/08, Atsushi Eno <[EMAIL PROTECTED]> wrote:
>
> 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@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



-- 
With best regards,
  Andrew Koryavchenko, Solutions Architect MVP.
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to