Cobol Copybooks?

Robert C. Lyons boblyons at
Mon Jun 7 18:54:12 BST 1999

Steven J. Owens wrote:
	"'d be really nifty to have a generic system to generate XML
	DTDs from the copybooks, and then parse the data into XML-tagged


XML Convert can probably convert your legacy data into XML.
XML Convert is a Java application that converts flat files into XML. 
It uses XFlat schemas to parse and validate the flat files, and 
to produce the XML output. XFlat is an XML language for defining 
flat file schemas. XML Convert supports a wide variety of flat file formats, 
including CSV, fixed length records and fields, multiple record types, 
groups of records, nested groups, etc.

You can download XML Convert 1.0 for free at

By the way, XML Convert can not convert a COBOL copybook into a DTD.

However, Metagenix ( claims to have 
products that will parse cobol copy books and extract the metadata. 
I doubt that their products can convert a cobol copy book into a DTD;
however, perhaps you could write a simple script to 
convert the Metagenix output into a DTD (or into an XFlat schema :-).

Hope this helps.


Bob Lyons
EC Consultant
Unidex Inc.
boblyons at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list