xml namespace

Hello, I have a question in using the xmlnodetodocument service, specifically the nsdecls function. I have an xml document that has a name space of ns2:customer, I would like to remove the ns2 from the start of the customer string. Help would be greatly appreciated.

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.




Check this thread till end,it explains couple of other possible solutions,edit the schema: