Recently, we came across a requirement , where we need to remove name space of XML before we send to MQ. this case IBM I Series application is receiving data from processing .
This is very common requirements specially when we are integrating with legacy system. In order to achieve functionality, I use below X-Query function.
Name -RemoveNamespace
xquery version "1.0" encoding "Cp1252";
declare namespace xf = "http://www.officedepot.org/Order/Remove_Namespace/";
declare function xf:removeNamespace($e as element())as element()
declare variable $e as element() external;
Now, we need to use replace action in proxy message flow to execute this XQuery,