def get_node(self):
    if (not self.check_event(StreamEndEvent)):
        return self.compose_document()
def get_node(self):
    if (not self.check_event(StreamEndEvent)):
        return self.compose_document()