Removing namespaces at the element level
mARK aNDREWS <[email protected]> Wed, 4 Aug 2010 10:44:52 +0100
| Newsgroups | gmane.text.xml.xmlbeans.user |
|---|---|
| Message-ID | <[email protected]> |
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