You need

 marshaller.setNamespaceMapping("", "http://www.opentravel.org/OTA";);

Jenny


"Olivier LAMY" <[EMAIL PROTECTED]> on 15/07/2002 17:18:05

Please respond to [EMAIL PROTECTED]

To:    [EMAIL PROTECTED]
cc:
Subject:    [castor-dev] RootPrefixNamespace



Hi,
The generated xml files always have a default namespace with a prefix.
It looks like :
<ns1:OTA_HotelSearchRQ  xmlns:ns1="http://www.opentravel.org/OTA";>
....
</ns1:OTA_HotelSearchRQ>
But i want something as :
<OTA_HotelSearchRQ  xmlns="http://www.opentravel.org/OTA";>
....
</OTA_HotelSearchRQ>
I'm using the class org.exolab.castor.xml.Marshaller.
How to do this ?
Thanks,
Olivier

-----------------------------------------------------------
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

Reply via email to