[Mono-devel-list] XmlDocumentNavigator should implement IHasXmlNode

Duncan Mak duncan at ximian.com
Tue Jun 10 00:39:42 EDT 2003


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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: navigator.patch
Type: text/x-patch
Size: 1477 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030610/461aea77/attachment.bin 

More information about the Mono-devel-list mailing list