@args -c -ref:System.Xml /# http://cobra-language.com/forums/viewtopic.php?f=4&t=309 My note: The error happens during "DLL scanning" when an internal method of public type in a DLL has a parameter or return type that is internal to the DLL. Cobra should skip internal methods found in DLLs. #/ use System.Xml use System.Xml.XPath class XMLtest def main is shared collectionDoc = XmlDocument() collectionDoc.load("Collection.xml") collection = collectionDoc.createNavigator hasContents = collection.hasChildren print "hasChildren = ", hasContents collectionPathDoc = XPathDocument("Collection.xml") collectionPath = collectionPathDoc.createNavigator # this line stimulated a bug in Cobra hasPathContents = collectionPath.hasChildren print "hasPathChildren = ", hasPathContents print "done."