You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Radu Preotiuc-Pietro <ra...@bea.com> on 2006/10/14 21:02:38 UTC

RE: Default namespace and serialization

Setting XmlOptions.setUseDefaultNamespace() on save() or xmlText()
should accomplish exactly what you need. Is that what you have tried?

Radu

-----Original Message-----
From: acoyle@f2s.com [mailto:acoyle@f2s.com] 
Sent: Friday, September 29, 2006 2:19 AM
To: user@xmlbeans.apache.org
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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org

_______________________________________________________________________
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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org