* XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types. svn path=/trunk/mcs/; revision=8584
@@ -1,3 +1,7 @@
+2002-10-26 Piers Haken <[email protected]>
+
+ * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
2002-10-23 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: don't increment depth for entity references.
@@ -123,7 +123,7 @@ namespace System.Xml
case XmlNodeType.ProcessingInstruction:
return XPathNodeType.ProcessingInstruction;
}
- throw new InvalidOperationException ();
+ return (XPathNodeType) (-1);