This does not seem to work. In this case it adds the name space as - xmlns=""
| "Andrew Fawcett" <[EMAIL PROTECTED]>
07/02/04 01:50 PM
|
To: <[EMAIL PROTECTED]> cc: Subject: Re: [castor-user] Remove namespace prefix from the castor generated XML |
Hi,
Take a look at the setNamespaceMapping method.
http://www.castor.org/api/org/exolab/castor/xml/Marshaller.html#setNamespaceMapping(java.lang.String,%20java.lang.String)
If think if you pass null into the prefix and the correct URI for your namespace Castor will generate a default root namespace declaration and thus elements without a ns prefix.
Cheers,
Andy.
From: Thanooja S [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 08:58
To: [EMAIL PROTECTED]
Subject: [castor-user] Remove namespace prefix from the castor generated XML
Hi All
I am using Castor 0.9.5.3 to generate classes from xsd using the SourceCodeGenerator and then to marshal Java Objects to XML.
But in the generated XML i am getting the prefix ns1: with the complex types. Is there anyway i can remove it ?
Thanks
Thanooja
|
The information in this message is confidential and may be legally privileged. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately. Internet emails are not necessarily secure. CODA does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email may contain software viruses, which could damage your systems. CODA has checked the attachments for viruses before sending, but you should virus-check them before opening. |
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
