I am using xmllint to clean up my .xml file but for some reason the output adds <?xml version="1.0"?>
to the first line. Is there a flag to have this be removed?
Both of the following seem to avoid insertion of <?xml version="1.0"?>
:
xmllint --exc-c14n data.xml
xmllint --c14n data.xml
Hint:
xmllint --help
-or-
man xmllint
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With