[Mono-list] System.XML bug in 2.4 ???

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Tue May 19 13:12:32 EDT 2009


XPathNodeIterator can actually be of several (derived) types and
we cannot tell anything without code that actually creates the
iterator. I mean, code, document instance and xpath.

Atsushi Eno

Mario De Clippeleir wrote:
> Hi,
> 
> I was wondering if someone else has the same problem as me... I recently 
> upgraded to Mono 2.4. but all of a sudden, i have problem when reading 
> XML files using Xpath.
> There is also a difference between .NET and Mono.
> This is the problem code :
> XPathNodeIterator secondIterator = 
> anIterator.Current.SelectChildren(XPathNodeType.Element);
> 
> Now in .NET anIterator.Current is never null, but when i run this code 
> in the Mono 2.4 runtime, it is null, causing an exception. If i run it 
> in Mono 2.2 it works fine....
> 
> Does anyonde know about this ? Is there a solution ?
> 
> Br,
> 
> Mario
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> 



More information about the Mono-list mailing list