def __init__(self, envelope=True, encodingStyle=None, header=True, 
    nsdict={}, outputclass=None, **kw):
        '''Initialize.
        '''
        outputclass = outputclass or ElementProxy
        if not issubclass(outputclass, MessageInterface):
            raise TypeError, 'outputclass must subclass MessageInterface'

        self.dom, self.memo, self.nsdict= \
            outputclass(self), [], nsdict
        self.envelope = envelope
        self.encodingStyle = encodingStyle
        self.header = header
        self.body = None
        self.callbacks = []
        self.closed = False
def __init__ ( self , envelope = True , encodingStyle = None , header = True , nsdict = { } , outputclass = None , ** kw ) : outputclass = outputclass or ElementProxy if not issubclass ( outputclass , MessageInterface ) : raise TypeError , 'outputclass must subclass MessageInterface' self . dom , self . memo , self . nsdict = outputclass ( self ) , [ ] , nsdict self . envelope = envelope self . encodingStyle = encodingStyle self . header = header self . body = None self . callbacks = [ ] self . closed = False
Initialize.