def createElement(self, token):
name = token["<STR_LIT:name>"]<EOL>namespace = token.get("<STR_LIT>", self.defaultNamespace)<EOL>element = self.elementClass(name, namespace)<EOL>element.attributes = token["<STR_LIT:data>"]<EOL>return element<EOL>
Create an element but don't insert it anywhere