def update_ref_to_element(self, defs):
    new_refs = dict([(e.getAttribute('id'), e) for e in self.get_all_childNodes_have_id(defs)])
    self.ref_to_element.update(new_refs)
def update_ref_to_element(self, defs):
    new_refs = dict([(e.getAttribute('id'), e) for e in self.get_all_childNodes_have_id(defs)])
    self.ref_to_element.update(new_refs)