dom :: XMLEntity :: parent=
self
e
# Sets the parent of `self` to `e` fun parent=(e: XMLEntity) do var parent = self.parent if parent != null then parent.children.remove(self) end e.children.add(self) end