[jdom-interest] unwanted namespace attributes

Edelson, Justin Justin.Edelson at mtvn.com
Tue Oct 17 06:50:43 PDT 2006

> Should I set something to avoid it?
You could call element.setNamespace(Namespace.NO_NAMESPACE)

-----Original Message-----
From: jdom-interest-bounces at jdom.org
[mailto:jdom-interest-bounces at jdom.org] On Behalf Of Fabrizio Lippolis
Sent: Tuesday, October 17, 2006 8:53 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] unwanted namespace attributes


I am using the XMLOutputter to capture in a String the output of an 
element with all its sons. The original XML has an element like this


which gets printed as

<BODY:CBIHdrBdyInv xmlns:BODY="urn:CBI:xsd:CBIBdySrvInv.001.01">

The same thing happens to other tags as well. I tried both passing a Raw

Format to the XMLOutputter constructor and without any format but didn't

work. Should I set something to avoid it? Thank you in advance.


To control your jdom-interest membership:

More information about the jdom-interest mailing list