import org.exolab.castor.xml.Marshaller;
Marshaller m = new Marshaller(writer);
m.setSchemaLocation("...");
m.marshal(myObject);
--Keith
Ulf Heyder wrote:
>
> I use castor-0.9.5 with xerces-2.4.0 to automatically generate classes
> from XSDs via source generator and un-/marshall JAVA objects to/from
> XML files.
>
> My question is how to tell the castor source generator to create the
> classes in a way that while marshalling they will create a
> schemaLocation entry in the opening root tag:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <liste
> xmlns="http://www.test.de/test"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.test.de/test liste.xsd">
> .
> .
> .
> </liste>
>
> Thanks, Ulf
>
> --
> NEU F�R ALLE - GMX MediaCenter - f�r Fotos, Musik, Dateien...
> Fotoalbum, File Sharing, MMS, Multimedia-Gru�, GMX FotoService
>
> Jetzt kostenlos anmelden unter http://www.gmx.net
>
> +++ GMX - die erste Adresse f�r Mail, Message, More! +++
>
> -----------------------------------------------------------
> 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