Next / Previous / Contents / Shipman's homepage

30. Sox._endTag(): Write an XML end tag

sox.py
# - - -   S o x . _ e n d T a g

    def _endTag(self, uTag):
        '''Write an XML end tag.

          [ uTag is a unicode xml-name ->
              self.outFile  +:=  an XML end tag with name (uTag) ]
        '''
        self.outFile.write("</%s>" % uTag.encode('utf-8'))