Ubuntu下格式化xml文件
安装tidy:
sudo apt-get install tidy
使用tidy格式化xml文件:
cat ugly.xml | tidy -utf8 -xml -w 255 -i -c -q -asxml > pretty.xml
安装tidy:
sudo apt-get install tidy
使用tidy格式化xml文件:
cat ugly.xml | tidy -utf8 -xml -w 255 -i -c -q -asxml > pretty.xml