Setting XmlOptions.setUseDefaultNamespace() on save() or xmlText() should accomplish exactly what you need. Is that what you have tried?
Radu -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 29, 2006 2:19 AM To: [email protected] Subject: Default namespace and serialization Hi I have a xmlbeans binding class instance, and I wish to use the default namespace either when 'saving' the xml or when calling the 'xmlText' method. In order to do this, I would specify an 'xml option' to use the default namespace. However, if I serialize and then de-serialize the instance, the resulting instance now uses the 'ns' namespace. Of course, once de-serialized in this form, specifying the same 'xml option' for default namespace has no effect, because the 'ns' namespace has already been added. Is this a bug in xmlbeans? Or would the ability to set 'xml options' for serialization be classed as an enhancement? Thanks Alex. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

