When you define nsDecls parameter in the XMLNodeToXMLDocument,it will still preserve the namespace prefixes in the output document.
So try to map the node to document output to the document that doesn’t have name space prefixes (same customer document with out ns:) and set the documentType param also.
Another example:
Create an other document type perhaps, exactly the same like the one with your "ns’ prefix but without this prefix and do a explicit mapping.
ns:xxx
—ns:yyy
—ns:www
to
xxx
—yyy
—www
Check this thread till end,it explains couple of other possible solutions,edit the schema:
[URL]wmusers.com
HTH,
RMG
#soa#API-Management#webMethods