Patent ID: 8219901

Claim:
A method of filtering elements of a structured document on the basis of an expression including an item of information for identification of an evaluation mode of a part of said expression, comprising: a step of evaluating, by a processor, said expression on the basis of the data of the structured document by evaluating said part of the expression on the basis of the item of information for identification of the evaluation mode, the evaluation mode corresponding to (i) an extraction of elements not satisfying said part of the expression, or (ii) an extraction of elements satisfying said part of the expression and an extraction of elements not satisfying said part of the expression, said part of the expression being evaluated on the basis of the data of the structured document according to at least two different evaluation modes; wherein the expression includes at least one sub-expression relative to a LocationPath, and at least one sub-expression includes said part of the expression; wherein each sub-expression relative to a LocationPath includes at least one location step, and at least one location step includes said part of the expression; wherein the step of evaluating said expression includes a step of evaluating at least one location step; wherein at least one location step includes at least one predicate, and the step of evaluating said at least one location step is based on the result of the evaluation of said at least one predicate associated with said at least one location step; and wherein said information for identification of the evaluation mode of said at least one predicate identifies a mode of extraction of the elements satisfying said at least one predicate and elements not satisfying said at least one predicate, and the step of evaluating the location step extracts elements satisfying said at least one predicate and elements not satisfying said at least one predicate.