1. A method for obtaining computer-generated markup language documents using a programming language, the method including: parsing, by a computer-based system for obtaining computer-generated markup language documents, a template document to determine a working storage structure corresponding to a plurality of tags, wherein the template document includes the plurality of tags; and generating, by the computer-based system and in the programming language, an application protocol interface (API); wherein the API generates a markup language document during run-time, wherein the API generates a corresponding set of data elements corresponding to the working storage structure, and wherein the API includes a definition of the working storage structure including a plurality of API variables, code for each tag that participates in an array, and code configured to compress the data elements by truncating leading spaces in each data element, and wherein a dimension of the array can be adjusted in response to receiving input from a user interface.