I am using xmlbeans with spring and use the Spring xmlbeans marshaller so
don't really have control over this.  If there is no setting during the
class generation I may have to write my own marshaller to remove them...

m/|RK aNDREWS

photos: http://www.flickr.com/photos/mraandrews
twitter:  http://www.twitter.com/mraandrews


On 7 August 2010 00:32, Cezar Andrei <cezar.and...@oracle.com> wrote:

>  Mark,
>
>
>
> Please take a look at using the save aggressive option when printing/saving
> the document:
>
> http://xmlbeans.apache.org/docs/2.4.0/reference/index.html
>
>
>
> Cezar
>
>
>  ------------------------------
>
> *From:* mARK aNDREWS [mailto:mraandr...@gmail.com]
> *Sent:* Wednesday, August 04, 2010 4:45 AM
> *To:* user@xmlbeans.apache.org
> *Subject:* Removing namespaces at the element level
>
>
>
> I have been using xmlBeans for a while, and it really has made my life very
> easy, but have come a ccross a problem when looking at performance tuning
> and wondered if anyone new the answer, or can help.
>
> The documents I am passing are very large and I am looking at ways to
> redice the size of what is sent over the wire.  On inspection I noticed that
> the xml produced by xml beans contains the namespace data for each element
> in the xml:
>
> i.e.
>
> <per:person  xmlns:per="http://www.blah.com/entities/person_v1"; >
>     <per:name xmlns:per="http://www.blah.com/entities/person_v1
> ">Bob</per:name>
>     <per:origin  xmlns:per="http://www.blah.com/entities/person_v1
> ">UK</per:origin>
>     <per:age  xmlns:per="http://www.blah.com/entities/person_v1
> ">34</per:age>
> </per:person>
>
> What I actually want is something like this:
>
> <per:person xmlns:per="http://www.blah.com/entities/person_v1";>
>     <per:name >Bob</per:name>
>     <per:origin>UK</per:origin>
>     <per:age>34</per:age>
> </per:person>
>
> Thanx
>
> m/|RK aNDREWS
>
> photos: http://www.flickr.com/photos/mraandrews
> twitter:  http://www.twitter.com/mraandrews
>

Reply via email to