Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

개요

xml 파일을 schema validation 해주고 정렬해 주고 예쁘게 포맷팅 해주는 cmd 기반 유틸리티이다. (astyle 는 xml 파일을 처리 못함)

 

설치

RHEL/CentOS

yum install libxml2

Windows

https://code.google.com/p/xmllint/downloads/list 에서 다운로드

사용

cmd 에서 사용

xmllint pom.xml > new-pom.xml

vim 에 연결

bash 에 연결

function Qxmllint {
        if [ $# != 1 ]; then
                echo "parameter need!";
        else
                cp $1 ${1}.org
                /usr/bin/xmllint ${1}.org > ${1}
        fi;
  • No labels