Patent ID: 7475338

Claim:
A method for dual operational mode parsing of a XML document, the method comprising: Retrieving a XML document; Identifying a segment within the XML document containing information that is desired for further processing; Determining a primary termination condition for terminating an abbreviated parsing scan operation that is performed upon the retrieved XML document, wherein the abbreviated parsing scan operation comprises the cursory scanning of the constructive elements of the XML document, further the primary termination condition for the abbreviated parsing scan operation is correlated to the beginning of the segment within the XML document containing the information that is desired for further processing; Determining a secondary termination condition for terminating a full parsing scan operation that is performed upon the retrieved XML document, wherein the secondary termination condition for full parsing scan operation is correlated to the end of the segment within the XML document containing the information that is desired for further processing; Initiating an abbreviated parsing scan operation upon the XML document, the abbreviated parsing scan operation being ended upon the occurrence of the primary termination condition; Initiating a full parsing scan operation upon the XML document upon the termination of the abbreviated parsing scan operation, the full parsing scan operation being ended upon the occurrence of the secondary termination condition, wherein primary and secondary termination conditions are based upon a number of occurrences of an element; and Retrieving the information from the XML document that is desired for further processing.