'Convenience method for ``master_element[name].data if name in master_element else default``
:param string name: the name of the child to get
:param default: default value if `name` is not in the :class:`MasterElement`
:return: the data of the child :class:`Element` or `default`'

def get(self, name, default=None):

    if (name not in self):
        return default
    element = self[name]
    if (element.type == MASTER):
        raise ValueError(('%s    is    a    MasterElement' % name))
    return element.data
