  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Re: unwanted namespace attributes | Re: unwanted namespace attributes 2006-10-17 - By Fabrizio Lippolis
Back Edelson, Justin ha scritto:
>> Should I set something to avoid it? > You could call element.setNamespace(Namespace.NO_NAMESPACE)
Justin,
this way the namespace is removed at all and I get <CBIHdrBdyInv> instead of <BODY:CBIHdrBdyInv>. I don't want to remove the namespace, I just want to remove the attribute which was added by XMLOutputter. I know I can manually remove the attribute but as I wrote the same thing happened to some sons of <BODY:CBIHdrBdyInv>. This means I should explore the whole tree under <BODY:CBIHdrBdyInv> and remove the attributes. Since there was no attribute in the original namespace and I found it in the output of XMLOutputter I thought I could set some property somewhere to avoid getting the attribute on all the tags where I get them. It is extremely important for me to obtain _exactly_ the same tree I have read as input.
Best regards, Fabrizio
P.S.: please don't reply on top because it makes difficult to follow the conversation.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
|
|
 |