1. A method comprising: creating, by a document processing 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; creating a second programming language section to contain the program code in the second programming language; producing by the procedural division statement and the second programming language section, the program code in the second programming language, 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.