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