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