1. A method for searching for a desired element in a document using a first sequence of elements from a related document, wherein the document is related by an expected similarity, wherein the first sequence of elements represents an ordered list of elements where each element is from a predetermined set of elements, the method comprising: (a) building a second sequence of elements from the document, wherein the second sequence of elements represents an ordered list of elements where each element is from the predetermined set of elements; (b) generating one or more search queries from the first sequence of elements; (c) comparing the second sequence of elements with the one or more search queries to produce one or more comparison results; and (d) determining the desired element in the document from the one or more comparison results.