'@param root: An XML root element.
@type root: L{Element}
@param definitions: A definitions object.
@type definitions: L{Definitions}'

def __init__(self, root, definitions=None):

    Object.__init__(self)
    self.root = root
    pmd = Metadata()
    pmd.excludes = ['root']
    pmd.wrappers = dict(qname=repr)
    self.__metadata__.__print__ = pmd
