Hands-on task
This task is step 26 of the course “JSON, YAML and XML in the terminal”
Format XML
In /root/compact.xml all the XML is squeezed into one line. Make it readable with indentation and write it to /root/pretty.xml — with line breaks and nested indentation.
Reference:xmllint
What you'll practise:
- xmllint
- --format
- formatting
- indentation
- pretty-print