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

Mario De Clippeleir mariodc at sydec.be
Tue May 19 10:19:42 EDT 2009


Robert Jordan wrote:
> 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
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>   

Hi,

Yes. But apparently when the current node has no children it returns 
null... Is this possible ?

Mario


More information about the Mono-list mailing list