Patent ID: 7962919

Claim:
A method comprising: detecting, during parsing of an XML document, with a non-validating parser plug-in module; passing control to a parser plug-in module to perform event-based functionality to modify an initial event queue by inserting at least one new event to form a modified event queue, wherein modifying the initial event queue comprises: running a simple application programming interface for XML (SAX) parser, freezing parsing of the XML document, parsing the at least one new event, repeating the freezing the parsing of the XML document and parsing the at least one new event for each new event included; and detecting a document object model (DOM) build event; invoking the parser plug-in module to filter unneeded events from the initial event queue; reporting to a user event handler information required for building lazy DOM document by placing a limitation on nesting levels utilizing a special SAX handler mechanisms that skips information from a SAX processor as determined by the limitations on the DOM; and performing post processing functionality according to the modified event queue.