Patent ID: 8032826

Claim:
A method of mapping and retrieving Extensible Markup Language (XML) code, the method comprising: formatting an XML document to remove redundant whitespaces, wherein whitespaces comprise new line characters; padding each line of code in the XML document with unexecutable code to bring a total size of each line of code to a predetermined size; creating, after said padding, a node tree for the XML document, wherein each line of code in the XML document is represented by a node in the node tree; assigning breadth-first order node identifiers to each node in the node tree; mapping the breadth-first order node identifiers to corresponding depth-first node identifiers; based on the corresponding depth-first node identifiers, determining a node level of a particular node in the node tree; utilizing the node level and depth-first node identifier of the particular node to determine a starting byte/character position for the particular node in the node tree, wherein the starting byte/character position describes a start position in the XML document at which the particular node starts; utilizing the node level and depth-first node identifier of the particular node to determine an ending byte/character position for the particular node in the node tree, wherein the ending byte/character position describes an end position in the XML document at which the particular node ends; retrieving the particular line of code that is associated with the particular node in accordance with the starting byte/character position and the ending byte position; and removing the unexecutable code from the particular line of code that is associated with the particular node.