Patent Document ID: 7882138
Application ID: 12057366
Patent Flag: 1

Claim One:
1. A method comprising: determining hit of a location path in a SAX event; identifying all XPath predicate expressions of all XPath queries corresponding to the location path; determining all leaf nodes in the XPath predicate expressions corresponding to the location path; checking storage of nearest parent nodes of the leaf nodes, wherein each nearest parent node is first parent node which is encountered while moving from a leaf node towards a root node in an XPath predicate expression and which requires storage for storing intermediate Boolean result; determining results of parent nodes of the leaf nodes based on the checking; storing the results of the parent nodes if the results of the parent nodes are Boolean results; and determining results of root nodes of the XPath predicate expressions by progressively evaluating subsequent parent nodes of the parent nodes, thereby avoiding evaluation of parts of the predicate expressions that yielded a Boolean result.