xml indentation in linux

XML beautifier in linux can be easily done using libxml tools.

  1. install xml library
    sudo apt-get install libxml2-utils
  2. Run the following command
    xmllint --format --output <path_to_output> <input_file>

That’s it!

Apparently this tool can be used for smooth integration within gedit but this made gedit crash on my computer.

sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...