[Mono-devel-list] XmlDocumentNavigator should implement IHasXmlNode

Piers Haken piersh at friskit.com
Tue Jun 10 01:40:48 EDT 2003


Except for the tab/space conversion it looks good.

Piers.

> -----Original Message-----
> From: Duncan Mak [mailto:duncan at ximian.com] 
> Sent: Monday, June 09, 2003 9:40 PM
> To: mono-devel mailing list
> Subject: [Mono-devel-list] XmlDocumentNavigator should 
> implement IHasXmlNode
> 
> 
> Hey,
> 
> The relationship between the abstract class, XPathNavigator 
> and the IHasXmlNode interface is kinda funny. While 
> XPathNavigator doesn't implement the interface, it looks like 
> concrete implementations of the abstract class should 
> implement the interface...
> 
> John Luke was having trouble with this on #mono:
> 
> [00:13] <jluke> XmlNode node = ((IHasXmlNode)nav).GetNode(); 
> throws an InvalidCastException, anyone know why?
> 
> This patch should fix the problem.
> 
> Should I commit?
> 
> Duncan.
> 



More information about the Mono-devel-list mailing list