Our application need to read a HTTP XML service and we have DTDs for XML service. But usually we use XSDs to generate Java objects. Now we have two options.

1. create java objects from given DTDs

2. convert given DTDs to XSD and then create Java objects.

 

which one is better and why?

I apprciate any other options/suggestions.

thanks in advance.

 

-Sreedhar