(self, node, subnode, isText=True)
Process placeholders in Element.text or Element.tail
        of Elements popped from self.stashed_nodes.

        Keywords arguments:

        * node: parent node
        * subnode: processing node
        * isText: bool variable, True - it's text, False - it's tail

        Returns: None
Process placeholders in Element.text or Element.tail
        of Elements popped from self.stashed_nodes.
Process placeholders in Element . text or Element . tail of Elements popped from self . stashed_nodes .
def __processElementText(self, node, subnode, isText=True):
        """
        Process placeholders in Element.text or Element.tail
        of Elements popped from self.stashed_nodes.

        Keywords arguments:

        * node: parent node
        * subnode: processing node
        * isText: bool variable, True - it's text, False - it's tail

        Returns: None

        """
        if isText:
            text = subnode.text
            subnode.text = None
        else:
            text = subnode.tail
            subnode.tail = None

        childResult = self.__processPlaceholders(text, subnode)

        if not isText and node is not subnode:
            pos = node.getchildren().index(subnode)
            node.remove(subnode)
        else:
            pos = 0

        childResult.reverse()
        for newChild in childResult:
            node.insert(pos, newChild)
def __processElementText ( self , node , subnode , isText = True ) : if isText : text = subnode . text subnode . text = None else : text = subnode . tail subnode . tail = None childResult = self . __processPlaceholders ( text , subnode ) if not isText and node is not subnode : pos = node . getchildren ( ) . index ( subnode ) node . remove ( subnode ) else : pos = 0 childResult . reverse ( ) for newChild in childResult : node . insert ( pos , newChild )