<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

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()