'Load a subcorpus of a lexical unit from the given xml.'

def _handle_lusubcorpus_elt(self, elt):

    sc = AttrDict()
    try:
        sc[u'name'] = elt.get(u'name')
    except AttributeError:
        return None
    sc[u'_type'] = u'lusubcorpus'
    sc[u'sentence'] = []
    for sub in elt:
        if sub.tag.endswith(u'sentence'):
            s = self._handle_lusentence_elt(sub)
            if (s is not None):
                sc[u'sentence'].append(s)
    return sc
