How to handle mixed DTD/Schema
I am building an application that uses a set of java classes generated using xjc from an XSD. The problem is that the application needs to communicate with another system which is using a DTD instead of a XSD.
Some example xml documents provided by the developers of the other system shows a DOCTYPE with a reference to thier DTD.
I am interested in knowing whether this setup will work, when marshalling and unmarshalling the resulting XML documents. Ideally I am interested in reproducing the xml from the example xml documents, including the DOCTYPE reference.
I can see two problems, first that i do not produce the DOCTYPE reference when i marshal the object and I am not sure how the unmarshaller will handle the DOCTYPE reference when unmarshalling.
I would appreciate any guidance in how this could best be handled.
thanks in advance...