An InputSource feeds the document into the parser As the document is read, the parser calls back the methods in the registered event handler, mirroring the structure of the underlying XML document This event based API has some shortcomings in that you might not have all the information you need at the time of a given callback or that , inversely, you have to store information locally in order to act on it later.
All current implementations store the document in memory.
Inc. Legal Notices .