You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by Arnaud MERGEY <am...@sunopsis.com> on 2006/05/04 17:08:33 UTC

Axiom remove namespace printing OMElement

Hi,

I  need to print an OMElement in file, I have found this code.

OMElement response=......
  //Print result in a file
FileWriter writer=new FileWriter(pResultFile,pAppend);
response.serialize(XMLOutputFactory.newInstance()
                  .createXMLStreamWriter(writer));


Can I clean result xml removing namespace and prefix with Axiom (I'd 
prefer don't use XSLT transformation).

for example I want <pre:tag></pre:tag> be printed <tag></tag>

thanks for yout help
Arnaud