Hi Vairoj,

First call startDocument() on the marshalling context, then get the IXMLWriter from the context and write the DTD using the WriteDocType() method of the writer instance. Then cast the object you want to marshal to IMarshallable and call the marshal() method on the object. Finish with a call to endDocument() on the marshalling context.

 - Dennis

Vairoj A. wrote:

Hi,

Is it possible for JibX generate XML file to have document type declaration generated? I.e.

<!DOCTYPE chapter SYSTEM "../dtds/chapter.dtd">

How to archive this?

Regards,

Vairoj



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to