We also converted from SGML to XML in the meantime, so you can probably make do with a standard XML parser without having to write a custom SGML one.
Use XML tools with care! Some of our XML files are not well formed because they contain more than one root element.
Kind regards, Jürgen Purtz.