import xmlparser, xmltree, streams let doc = newStringStream """ """ for i in doc.parseXml.findAll "Student": echo i.attr "Name"