CB2XML (CopyBook to XML) is a COBOL CopyBook to XML converter written in Java and based on the SableCC parser generator. This project includes utilities to convert an XML instance file into its COBOL copybook equivalent string buffer and vice versa.
Source is now available in GitHub: https://github.com/bmTas/cb2xml
Editor for Fixed Width, Csv and Existing Xml files.
...It can generally find both Text and binary / packed deicimal fields in a file
For Simple Csv you should look at its sister project reCsvEditor.
Note: The core Editor code is also used in the "Protocol buffers editor" and "Avro Editor"