Need to remove namespace from XML by keeping everything else as is including the attributes. I tried using replace and update but it does not seem to work. Below is the sample XML where I need to remove the namespace (ds2).
Input XML:
<ds2:note xmlns:ds2="http://sampleSchame" code= "12332" Id="333-333-333" set="2" St"2024-09-11T11:23:55" sq="2">
<customer>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</customer>
</ds2:note>
Expected Output:
<note xmlns:ds2="http://sampleSchame" code= "12332" Id="333-333-333" set="2" St"2024-09-11T11:23:55" sq="2">
<customer>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</customer>
</note>