Patent ID: 8572127

Claim:
A computer program product for processing data stored as a tree structure identifiable by a structure identifier (ID), comprising: a computer readable storage device having computer readable program code recorded thereon, where the computer readable program code when executed on a computer causes the computer to: receive a numeric structure identifier (ID) that represents a tree structure of a document that comprises the data, where the numeric structure ID is calculated as a product of factors with each factor of a form of P raised to a power of m, where p is a prime number corresponding to a node ID of a node represented by the node ID and m is a number of children of the node represented by the node ID; receive a first numeric node ID that represents a first node of the tree structure of the document; identify the tree structure of the document corresponding to the numeric structure ID, where the data of the document is stored as the tree structure identifiable by the numeric structure ID; identify the first node within the tree structure corresponding to the first numeric node ID; and return a value of the identified first node.