Methods and apparatus for creating markup language documents
First Claim
1. An apparatus comprising a processor and a memory storing a program executable by the processor, wherein the program includes computer code for implementing a method for obtaining computer-generated markup language documents using a programming language, the method including steps of:
- creating, using a markup language, a template document including a plurality of tags;
populating each of the plurality of tags with a value, wherein at least one of the plurality of tags is populated with a maximum tag length value;
parsing the template document to determine a working storage structure corresponding to the plurality of tags; and
generating, in the programming language, an API configured to generate, during run-time, a markup language document, and to generate a corresponding set of data elements corresponding to the working storage structure, wherein the generated API includes;
a definition of the working storage structure including a plurality of API variables,code for each tag that participates in an array, andcode configured to compress the data elements by truncating leading spaces in each data element,wherein a dimension of the array can be adjusted upon receiving input from a user interface.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for generating markup language documents, e.g., XML documents, uses a code generator that creates programs configured to create dynamic XML documents at run time, avoiding many of the complexities arising from the use of conventional “XML GENERATE” statements. In one embodiment, this process involves (1) creating a template document using a markup language, wherein the template document includes a set of tags associated with the markup language documents; (2) parsing the template document to determine a working storage structure corresponding to the tags in the template document; and (3) generating an application program in the programming language (e.g., COBOL), wherein the application program includes a definition of the working storage structure, and is configured to generate, during run-time, a markup language document corresponding to the original template document.
24 Citations
10 Claims
-
1. An apparatus comprising a processor and a memory storing a program executable by the processor, wherein the program includes computer code for implementing a method for obtaining computer-generated markup language documents using a programming language, the method including steps of:
-
creating, using a markup language, a template document including a plurality of tags; populating each of the plurality of tags with a value, wherein at least one of the plurality of tags is populated with a maximum tag length value; parsing the template document to determine a working storage structure corresponding to the plurality of tags; and generating, in the programming language, an API configured to generate, during run-time, a markup language document, and to generate a corresponding set of data elements corresponding to the working storage structure, wherein the generated 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, wherein a dimension of the array can be adjusted upon receiving input from a user interface. - View Dependent Claims (2, 3, 4)
-
-
5. A system for generating markup language documents, the system comprising a computer apparatus configured to:
-
create, using a markup language, a template document including a plurality of tags; populate each of the plurality of tags with a value, wherein at least one of the plurality of tags is populated with a maximum tag length value, parse the template document to determine a working storage structure corresponding to the plurality of tags, and generate an API configured to generate, during run-time, a markup language document and to generate a corresponding set of data elements corresponding to the working storage structure, 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, wherein a dimension of the array can be adjusted upon receiving input from a user interface. - View Dependent Claims (6, 7, 8)
-
-
9. A computer-readable storage medium storing, in executable form, computer-readable instructions that, when executed by one or more computing devices, implement a method for obtaining computer-generated markup language documents using a programming language, the method comprising:
-
creating, using a markup language, a template document including a plurality of tags; populating each of the plurality of tags with a value, wherein at least one of the plurality of tags is populated with a maximum tag length value; parsing the template document to determine a working storage structure corresponding to the plurality of tags; and generating, in the programming language, an API configured to generate, during run-time, a markup language document, and to generate a corresponding set of data elements corresponding to the working storage structure, 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, wherein a dimension of the array can be adjusted upon receiving input from a user interface. - View Dependent Claims (10)
-
Specification