Send some XML.

def send_xml(self, text, code=200):
        '''Send some XML.
        '''
        self.send_response(code)
        
        if text:
            self.send_header('Content-type', 'text/xml; charset="%s"' %UNICODE_ENCODING)
            self.send_header('Content-Length', str(len(text)))

        self.end_headers()
        
        if text:
            self.wfile.write(text)

        self.wfile.flush()