SEARCHING DOCUMENT OBJECT MODEL ELEMENTS BY ATTRIBUTE ORDER PRIORITY
First Claim
1. A method for searching a plurality of objects of a document, the method comprising:
- generating a query expression for searching the document, the query expression comprising one or more attributes related to attributes of a target object of the document;
parsing attributes of the query expression into one or more attribute groups based on logical operators between the attributes, each attribute group comprising at least one attribute;
weighting each one or more attribute group based on an order priority of the attributes; and
searching for the target object in the document based on the weighted one or more attribute groups.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the invention provide systems and methods for searching for elements of a document based on an order priority of attributes of a query expression. According to one embodiment, a method of searching a plurality of objects of a document, such as elements of a DOM document, can comprise generating a query expression with attributes related to a target object of the document. For example, the expression can comprise an XPath expression. The attributes of the query expression can be parsed into one or more attribute groups, each comprising at least one attribute, based on logical operators between the attributes. Each one or more attribute groups of each expression can be weighted and a search can be performed for the target object in the document based on the weighted one or more attribute groups of the query expression.
36 Citations
20 Claims
-
1. A method for searching a plurality of objects of a document, the method comprising:
-
generating a query expression for searching the document, the query expression comprising one or more attributes related to attributes of a target object of the document; parsing attributes of the query expression into one or more attribute groups based on logical operators between the attributes, each attribute group comprising at least one attribute; weighting each one or more attribute group based on an order priority of the attributes; and searching for the target object in the document based on the weighted one or more attribute groups. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system comprising:
-
a processor; and a memory communicatively coupled with and readable by the processor, the memory having stored therein a set of instructions which, when executed by the processor, cause the processor to search elements of a Document Object Model (DOM) document by generating an XPath expression for searching the DOM document, the XPath expression comprising one or more attributes related to attributes of a target element of the DOM document, parsing attributes of the XPath expression into one or more attribute groups based on logical operators between the attributes, each attribute group comprising at least one attribute, weighting each one or more attribute groups of the XPath expression, and searching for the target element in the DOM document based on the weighted one or more attribute groups. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A machine-readable medium having stored therein a series of instructions which, when executed by a processor, cause the processor to search elements of a Document Object Model (DOM) document by:
-
receiving an XPath expression for searching the DOM document, the XPath expression comprising one or more attributes related to a target element of the DOM document; parsing attributes of the XPath expression into one or more attribute groups based on logical operators between the attributes, each attribute group comprising at least one attribute; weighting each one or more attribute groups based on an order priority of the attributes; and searching for the target element in the DOM document based on the weighted one or more attribute groups of the XPath expression. - View Dependent Claims (18, 19, 20)
-
Specification