[Zope] Stop zope from adding <html><head></head> to my method

Jacob Gorm Hansen jg@ioi.dk
Fri, 25 Feb 2000 17:42:42 +0100


"Ibaņez Palomar Juan David" wrote:

> It's not zope, it's the browser who adds "<html><head></head>".

Hmm not sure about that, lynx -source gives the same result as netscape.

my top level object has the following getXML-method (not useable for
other than my own small application):

        def getXML(self):
                """ """
                r = '<?xml version="1.0"?>\n<project id="%s">' % self.id
                for i in self.objectValues():
                        if(i.id != 'acl_users'):
                                r = r  + i.getXML()
                return r + '</project>\n'

Do I have to somehow change the content-type for my method, or what goes
wrong?

Best,
Jacob