You'll need to create your own Xerces XMLSerializer...configure it (see OutputFormat) and then make a call to Serializer#asDocumentHandler to retrieve a DocumentHandler which can then be passed to the Marshalling framework.
You can look at the code of the Marshaller.java to see how this can be done. Or you can search the mailing list archives (http://www.mail-archive.com/castor-dev%40exolab.org/) for more information as I've answered this question a few times in the past. Thanks, --Keith "Nikolai V. Chr." wrote: > > How do I insert schema-location into marshalled xml document. > > I am using the sourcegenrator. > > And how do I insert encoding into marshalled xml document. > > thanks > Nikolai > > ---------------------------------------------- > Nikolai V. Christensen, Computer Engineer, > Simulation and Training department > IFAD, Forskerparken 10A, DK-5230 Odense M > Phone: +45 63 15 71 31 Fax: +45 65 93 29 99 > WWWeb: http://www.ifad.dk > e-mail: [EMAIL PROTECTED] > ---------------------------------------------- > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
