5. The method of claim 1 , further comprising: generating a current node event based on a first node in the input document; generating a current operation event based on a first operation of the set of operations; for each node event in the plurality of node events, determining whether the node identified by the current operation event is the same as the node identified by the current node event.
5. The method of claim 1 , further comprising: generating a current node event based on a first node in the input document; generating a current operation event based on a first operation of the set of operations; for each node event in the plurality of node events, determining whether the node identified by the current operation event is the same as the node identified by the current node event. 16. The method of claim 5 , further comprising: after determining that the node identified by the current operation event is the same as the node identified by the current node event, determining the operation that is specified by the current operation event; and in response to determining that the operation that is specified by the current operation event is an update operation, generating and returning a new node event that reflects the update specified in the current operation event; wherein the node that is identified in the new node event is included in the output document.