jPretty: What is it?I created jPretty while on the job, to solve a problem that arose during attempts to validate large datafiles created by ETL processes.There was a need to open huge unformmatted xml files, containing millions of records. However, viewing such files was extremely difficult as windows-based tools would die trying to load the files into memory, and unix-based editors displayed the unformatted files all on one line (because the files were being created without newline characters). jPretty is a tool written in Java to facilitate viewing such files. The version I've posted online has build and run scripts intended for use in a unix environment, but being Java, jPretty could theoretically run on any platform.
What does it do?jPretty takes raw, unformatted xml files and breaks them into multi-line files. It does this as a stream, which allows it to avoid the necessity of loading all of a file into memory. It can process single files, or a directory of files.
Get it:(available as zip or gzip, source code included)