(self, tag, attrs)
return elem
Open new element and return it.

        *tag* is the element name, *attrs* is a dict containing element
        attributes.
Open new element and return it.
Open new element and return it .
def start(self, tag, attrs):
        """Open new element and return it.

        *tag* is the element name, *attrs* is a dict containing element
        attributes.

        """
        self._flush()
        self._last = elem = self._factory(tag, attrs)
        if self._elem:
            self._elem[-1].append(elem)
        elif self._root is None:
            self._root = elem
        self._elem.append(elem)
        self._tail = 0
        return elem
def start ( self , tag , attrs ) : self . _flush ( ) self . _last = elem = self . _factory ( tag , attrs ) if self . _elem : self . _elem [ - 1 ] . append ( elem ) elif self . _root is None : self . _root = elem self . _elem . append ( elem ) self . _tail = 0 return elem