def compose_document(self):
    self.get_event()
    node = self.compose_node(None, None)
    self.get_event()
    self.anchors = {}
    return node
def compose_document(self):
    self.get_event()
    node = self.compose_node(None, None)
    self.get_event()
    self.anchors = {}
    return node