'Convenience method for adding an element with no children'

def addQuickElement(self, name, contents=None, attrs=None):

    if (attrs is None):
        attrs = {}
    self.startElement(name, attrs)
    if (contents is not None):
        self.characters(contents)
    self.endElement(name)
