'Get the document root.  For I{document/literal}, this is the
name of the wrapper element qualifed by the schema tns.
@param wrapper: The method name.
@type wrapper: L{xsd.sxbase.SchemaObject}
@return: A root element.
@rtype: L{Element}'

def document(self, wrapper):

    tag = wrapper[1].name
    ns = wrapper[1].namespace('ns0')
    d = Element(tag, ns=ns)
    return d
