Basically you have to write a program to convert your SGML to XML, then use one of the many XML packages to work with it - SAX, XSLT, etc. I am not familiar with OFX, but I think that the same standards apply.
Post by Walt Is there anyone that knows how to write SGML or OFX applications in JAVA!