ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sewwandi Perera <sper...@outlook.com>
Subject FW: How to remove namespace prefix from an OMelement attribute
Date Tue, 19 Aug 2014 16:23:23 GMT
Hi,
My requirement is to remove namespace prefix of an attribute when the namespace prefixes of
both the attribute and the belonging OMElement are same. 
Example:
Input: <ns1:Location ns1:type="attribute">
Output: <ns1:Location type="attribute"> 
I used "namespace repairing" property in XMLStreamWriter as given in links [1], [2] to get
this done but it didn't work for me. 
please let me know what is the recommended way to achieve this.

[1] http://www.javadocexamples.com/javax/xml/stream/javax.xml.stream.XMLOutputFactory.html[2]
http://ws.apache.org/axiom/devguide/ch05.html#d5e623
Thanks and Regards,Sewwandi
 		 	   		   		 	   		  
Mime
View raw message