Methods and apparatus for processing markup language documents
First Claim
1. A method comprising:
- creating, by a computer-based system, a linkage data structure corresponding to a second programming language different from a markup language, wherein the linkage data structure includes a field for each tag in a set of tags associated with the markup language, wherein the set of tags is retrieved by parsing a document;
generating, by the computer-based system, program code in the second programming language based on the set of tags, wherein the generating comprises;
creating a procedure division statement in the second programming language;
wherein the procedure division statement is capable of accepting a document written in the markup language,wherein the document is variable length, andwherein the procedure division statement is capable of returning a fixed format data structure corresponding to the linkage data structure,creating a second programming language section to contain the program code in the second programming language; and
producing, by the procedure division statement and the second programming language section, the program code in the second programming language,wherein the program code is configured to extract, from the document written in the markup language, the set of tags associated with the markup language and at least one attribute associated with each tag;
forming, by the computer-based system, an application programming interface (API) that includes the linkage data structure and the program code; and
using, by the computer-based system, the application programming interface (API) to pass content from one or more documents written in the markup language to a program element of a program written in the second programming language.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for facilitating the processing of markup language documents, e.g., XML documents, uses a code generator that creates programs configured to read dynamic XML documents at run time, avoiding many of the complexities arising from the use of conventional “XML Parse” statements. In one embodiment, this process involves (1) creating a template document using the 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 data 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 data structure, and is configured to read, during run-time, the markup language document and generate a corresponding set of data elements corresponding to the data structure.
31 Citations
19 Claims
-
1. A method comprising:
-
creating, by a computer-based system, a linkage data structure corresponding to a second programming language different from a markup language, wherein the linkage data structure includes a field for each tag in a set of tags associated with the markup language, wherein the set of tags is retrieved by parsing a document; generating, by the computer-based system, program code in the second programming language based on the set of tags, wherein the generating comprises; creating a procedure division statement in the second programming language; wherein the procedure division statement is capable of accepting a document written in the markup language, wherein the document is variable length, and wherein the procedure division statement is capable of returning a fixed format data structure corresponding to the linkage data structure, creating a second programming language section to contain the program code in the second programming language; and producing, by the procedure division statement and the second programming language section, the program code in the second programming language, wherein the program code is configured to extract, from the document written in the markup language, the set of tags associated with the markup language and at least one attribute associated with each tag; forming, by the computer-based system, an application programming interface (API) that includes the linkage data structure and the program code; and using, by the computer-based system, the application programming interface (API) to pass content from one or more documents written in the markup language to a program element of a program written in the second programming language. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system comprising:
-
a processor, a tangible, non-transitory memory configured to communicate with the processor, the tangible, non-transitory memory having instructions stored thereon that, in response to execution by the processor, cause the processor to perform operations comprising; creating, by the processor, a linkage data structure corresponding to a second programming language different from a markup language, wherein the linkage data structure includes a field for each tag in a set of tags associated with the markup language, wherein the set of tags is retrieved by parsing a document; generating, by the processor, program code in the second programming language based on the set of tags, wherein the generating comprises; creating a procedure division statement in the second programming language; wherein the procedure division statement is capable of accepting a document written in the markup language, wherein the document is variable length, and wherein the procedure division statement is capable of returning a fixed format data structure corresponding to the linkage data structure, creating a second programming language section to contain the program code in the second programming language; and producing, by the procedure division statement and the second programming language section, the program code in the second programming language, wherein the program code is configured to extract, from the document written in the markup language, the set of tags associated with the markup language and at least one attribute associated with each tag; forming, by the processor, an application programming interface (API) that includes the linkage data structure and the program code; and using, by the processor, the application programming interface (API) to pass content from one or more documents written in the markup language to a program element of a program written in the second programming language. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. An article of manufacture including a non-transitory, tangible computer readable storage medium having instructions stored thereon that, in response to execution by a computer-based system, cause the computer-based system to perform operations comprising:
-
creating, by the computer-based system, a linkage data structure corresponding to a second programming language different from a markup language, wherein the linkage data structure includes a field for each tag in a set of tags associated with the markup language, wherein the set of tags is retrieved by parsing a document; generating, by the computer-based system, program code in the second programming language based on the set of tags, wherein the generating comprises; creating a procedure division statement in the second programming language; wherein the procedure division statement is capable of accepting a document written in the markup language, wherein the document is variable length, and wherein the procedure division statement is capable of returning a fixed format data structure corresponding to the linkage data structure, creating a second programming language section to contain the program code in the second programming language; and producing, by the procedure division statement and the second programming language section, the program code in the second programming language, wherein the program code is configured to extract, from the document written in the markup language, the set of tags associated with the markup language and at least one attribute associated with each tag; forming, by the computer-based system, an application programming interface (API) that includes the linkage data structure and the program code; and using, by the computer-based system, the application programming interface (API) to pass content from one or more documents written in the markup language to a program element of a program written in the second programming language.
-
Specification