class MainHandler(webapp.RequestHandler):

    def get(self):
        self.response.out.write('<myXml><node id=1 /></myXml>')

def main():
    application = webapp.WSGIApplication([('/', MainHandler)], debug=True)
Web Services with Google App Engine