I am using xmllint to clean up my .xml file, but for some reason the output is appending

Xmllint: Delete <? xml version = "1.0"?>

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?

+3


source to share


1 answer


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

+2


source







All Articles