Anchoring method for computing an XPath expression
First Claim
Patent Images
1. An anchoring method for generating an XPath expression for a selected node in transcodable markup comprising the steps of:
- identifying a stable anchor in the transcodable markup along an axis shared by the selected node;
generating an XPath expression for said stable anchor;
computing an offset between said stable anchor and the selected node; and
, concatenating said offset and said XPath expression for said stable anchor, said concatenation forming the XPath expression for the selected node.
1 Assignment
0 Petitions
Accused Products
Abstract
An anchoring method for generating an XPath expression. The method can include identifying a stable anchor in the transcodable markup along an axis shared by the selected node. An XPath expression can be generated for the stable anchor. Subsequently, an offset between the stable anchor and the selected node can be computed. Finally, the XPath expression for the stable anchor and the offset can be concatenated, the concatenation forming the XPath expression for the selected node.
104 Citations
20 Claims
-
1. An anchoring method for generating an XPath expression for a selected node in transcodable markup comprising the steps of:
-
identifying a stable anchor in the transcodable markup along an axis shared by the selected node;
generating an XPath expression for said stable anchor;
computing an offset between said stable anchor and the selected node; and
,concatenating said offset and said XPath expression for said stable anchor, said concatenation forming the XPath expression for the selected node. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An anchoring method for generating an XPath expression for a selected node within transcodable content comprising the steps of:
-
transforming the transcodable content into a set of nodes in a document object model (DOM) and traversing each axis in said DOM in search of a node with a unique trait within a threshold distance;
if said node is found in one of said axes during said traversing step, and, generating an XPath expression based upon said unique trait, said XPath expression uniquely identifying said node as a stable anchor;
generating an offset for said node along an axis joining said stable anchor and the selected node; and
,combining said generated XPath uniquely identifying said stable anchor and said generated offset, said combination producing an XPath expression for the selected node based upon said stable anchor. - View Dependent Claims (8, 9, 10)
-
-
11. A machine readable storage having stored thereon a computer program for generating an XPath expression for a selected node in transcodable markup, the computer program comprising a routine set of instructions for causing the machine to perform the steps of:
-
identifying a stable anchor in the transcodable markup along an axis shared by the selected node;
generating an XPath expression for said stable anchor;
computing an offset between said stable anchor and the selected node; and
,concatenating said offset and said XPath expression for said stable anchor, said concatenation forming the XPath expression for the selected node. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A machine readable storage having stored thereon a computer program for generating an XPath expression for a selected node in transcodable markup, the computer program comprising a routine set of instructions for causing the machine to perform the steps of:
-
transforming the transcodable content into a set of nodes in a document object model (DOM) and traversing each axis in said DOM in search of a node with a unique trait within a threshold distance;
if said node is found in one of said axes during said traversing step, and, generating an XPath expression based upon said unique trait, said XPath expression uniquely identifying said node as a stable anchor;
generating an offset for said node along an axis joining said stable anchor and the selected node; and
,combining said generated XPath uniquely identifying said stable anchor and said generated offset, said combination producing an XPath expression for the selected node based upon said stable anchor. - View Dependent Claims (18, 19, 20)
-
Specification