code: def add_from_string(self, strdata):
          
          if self.tree is None:
              self.tree = tree = ET.ElementTree(ET.fromstring(strdata))
              self.root = tree.getroot()
              self.objects = {}
          else:
              # TODO: append to current tree
              pass
docs: Load ui definition from string.