def _popToTag(self, name, inclusivePop=True):
<EOL>if name == self.ROOT_TAG_NAME:<EOL><INDENT>return<EOL><DEDENT>numPops = <NUM_LIT:0><EOL>mostRecentTag = None<EOL>for i in range(len(self.tagStack)-<NUM_LIT:1>, <NUM_LIT:0>, -<NUM_LIT:1>):<EOL><INDENT>if name == self.tagStack[i].name:<EOL><INDENT>numPops = len(self.tagStack)-i<EOL>break<EOL><DEDENT><DEDENT>if not inclusivePop:<EOL><INDENT>numPops = numPops - <NUM_LIT:1><EOL><DEDENT>for i in range(<NUM_LIT:0>, numPops):<EOL><INDENT>mostRecentTag = self.popTag()<EOL><DEDENT>return mostRecentTag<EOL>
Pops the tag stack up to and including the most recent
        instance of the given tag. If inclusivePop is false, pops the tag
        stack up to but *not* including the most recent instqance of
        the given tag.