Patent ID: 7653636

Claim:
A computer-implemented method for processing XML document, comprising: parsing an XML document to generate a stream of discrete pieces of the XML document; accepting a discrete piece of the XML document from the stream of discrete pieces and keeping in memory only said discrete piece of the XML document from the stream at any one time; performing, on one or more microprocessors, a match on said discrete piece of the XML document from the stream and notifying an observer when the discrete piece of the XML document is a matched discrete piece of the XML document, wherein when the discrete piece of the XML document is not a matched discrete piece of the XML document the observer is not notified; listening for the matched discrete piece of the XML document and passing it to a first user object; returning said discrete piece of the XML document to the stream; and pulling said discrete piece of the XML document from the stream for the use of a subsequent user object, wherein the subsequent user object handles said discrete piece of the XML document when there is another match.