'Generates the settings.xml file'

def settingsxml(self):

    x = DocumentSettings()
    x.addElement(self.settings)
    xml = StringIO()
    xml.write(_XMLPROLOGUE)
    x.toXml(0, xml)
    return xml.getvalue()
