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

Robert Jordan robertj at gmx.net
Tue May 19 08:23:40 EDT 2009


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);

Have you called anIterator.MoveNext() at least once? Otherwise
Current would be undefined.

Robert



More information about the Mono-list mailing list