I want to add a namespace prefix to the tags of the default name space of an XML document from the shell
1
vote
2
answers
915
views
I have a SVG file, which is an XML document:
I want to add the svg: prefix to all the tags corresponding to the default namespace in order to get next output:
I am sure this is possible in one or few command lines from the shell using **xmllint** and/or **xmlstarlet** but I can't manage it.
Asked by Pierre François
(143 rep)
Mar 20, 2020, 10:38 AM
Last activity: Jan 26, 2022, 10:00 AM
Last activity: Jan 26, 2022, 10:00 AM