users@jaxb.java.net

Re: Use of JAXB & SGML

From: Khalil Yarak <khalil.yarak_at_sun.com>
Date: Tue, 20 May 2003 12:17:31 +1000

Do you know of any tools which have a JAVA api that can take a message
that conforms to SGML and converts it so that it is XML compliant, that
is adds the end tags etc. This way I can validate the message against
the W3C Schema which I generate from the DTD.

regards

Kohsuke Kawaguchi wrote:

>Khalil Yarak <khalil.yarak_at_sun.com> wrote:
>
>
>>Hi all,
>>
>>I am about to start a project where we receive messages in SGML (to be more specific
>>these are OFX - Open Financial Exchange messages as per a SGML DTD) that
>>I would like to convert to XML so that I can parse them through JAXB and
>>so get the Java object representations. I am planning to convert the
>>SGML DTD to a schema where constraints can be added and then run that
>>through JAXB.
>>
>>I wanted to know from you guys if you have any suggestions with regards
>>to using JAXB in this case or if there is a better way.
>>
>>
>
>Use trang. The best tool I've ever seen:
>
> http://www.thaiopensource.com/relaxng/trang.html
>
>
>
>regards,
>--
>Kohsuke KAWAGUCHI 408-276-7063 (x17063)
>Sun Microsystems kohsuke.kawaguchi_at_sun.com
>
>