def doStuff(self, xmldoc):

        contacts = xmldoc.getElementsByTagName("contact")
        len = contacts.length;
        for i in range(len):
            contactsDom = contacts.item(i)
            firstNames = contactsDom.getElementsByTagName("firstname")
            firstNameNode = firstNames.item(0)
            firstName = firstNameNode.firstChild.nodeValue
            RootPanel().add(HTML(str(firstName) % "firstname: %s"))
dataset/ETHPy150Open anandology/pyjamas/examples/xmldoc/XMLload.py/XMLload.doStuff/swapped operands of `%`