'Set the type as any when implicit.
An implicit <xs:any/> is when an element has not
body and no type defined.
@return: self
@rtype: L{Element}'

def implany(self):

    if ((self.type is None) and (self.ref is None) and self.root.isempty()):
        self.type = self.anytype()
    return self
