hi all,
        i have the following problem.
i have to interact with a component using XML: i send XML String and have
back XML String.
the whole picture is that my component receives some data structures, build
an XML string out of that structure (according 2 a predefined DTD) and
send it to hte external component.
the external component will return back an XML String that i have to convert
to a Java object.

For avoiding to hardcode the parsing logic, i am oriented toward an XML2J binding
framework: i build the java class, call  javaclass.marshall to convert to XML and send
it to the external component.

The problem is that i need to output also the directive

<!DOCTYPE blah.dtd SYSTEM mydtd.dtd>

because hte other component may want to validate it.

point is that the 'XML' is already validated on my side, by doing XML2J mapping, but
the other component still need the directive that refers to the DTD.

And here is the other question: does Castor support DTDs for generating java classes?

hope someone can solve my question

thanx and regards
        marco

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to