Yevgeniy Belman
Fri, 13 Nov 2009 17:15:48 -0800
found this post. It definitely works, but is this the desired approach? http://www.mail-archive.com/dom4j-user@lists.sourceforge.net/msg01591.html
On Fri, Nov 13, 2009 at 4:41 PM, Yevgeniy Belman <ysbel...@gmail.com> wrote: > Hi, I'm using dom4j to parse and map xml docs and could really use some > help with 1.6.1 library. When i do an Element.remove(Namespace), the > namespace does not get removed. Here's a snippet where i am trying to remove > xmlns from the NbOfTxnPerSts element. It is not working for me. Any ideas? > > Element stat... > Element pain997... > > stat.detach(); > stat.remove(stat.getNamespace()); > System.out.println(stat.asXML()); > pain997.add(stat); > > <NbOfTxsPerSts xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"> > <DtldNbOfTxs>1</DtldNbOfTxs> > <DtldSts>ACTC</DtldSts> > </NbOfTxsPerSts> >
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user