I am using xmllint to clean up my .xml file, but for some reason the output is appending <?xml version="1.0"?> on the first line. Is there a flag to remove this?
<?xml version="1.0"?>
As shown below, both of the below should avoid typing <?xml version="1.0"?> :
xmllint --exc-c14n data.xml
xmllint --c14n data.xml
Hint:
xmllint --help
-or -
man xmllint