# .args. -ref:System.Xml # XmlNodeList has an ItemOf property instead of Item. # This test shows that Cobra is reading the DefaultMemberAttribute of the class. use System.Xml class Test def main is shared xDoc = XmlDocument() #xDoc.load('filename.xml') xDoc.loadXml(' Cobra http://Cobra-Language.com/ ') name = xDoc.getElementsByTagName('name') # an XmlNodeList url = xDoc.getElementsByTagName('url') assert name[0].innerText == 'Cobra' assert url[0].innerText.startsWith('http://')