I want to remove all the namespace attributes from the following XML.
I have tried to remove
xmlns
using following command which does not change the input in anyway.
xmlstarlet ed \
-N n="urn:oasis:names:tc:SAML:2.0:metadata" \
-d '/md:EntityDescriptor/@*[n:name()="xmlns"]' \
' \
> ttt.xml
Expected output:
Asked by s1n7ax
(437 rep)
Oct 12, 2022, 08:23 AM
Last activity: Oct 16, 2022, 11:13 PM
Last activity: Oct 16, 2022, 11:13 PM