XML 문서를 포맷합니다. 더 많은 정보: https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139569312.
xml {{[fo|format]}} {{[-t|--indent-tab]}} {{경로/대상/입력.xml|URI}} > {{경로/대상/출력.xml}}
xml {{[fo|format]}} {{[-H|--html]}} {{[-s|--indent-spaces]}} {{4}} {{경로/대상/입력.html|URI}} > {{경로/대상/출력.html}}
xml {{[fo|format]}} {{[-R|--recover]}} {{[-n|--noindent]}} {{경로/대상/잘못된.xml|URI}} > {{경로/대상/복구된.xml}}
stdin에서 XML 문서를 포맷하고 DOCTYPE 선언을 제거:cat {{경로/대상/입력.xml}} | xml {{[fo|format]}} {{[-D|--dropdtd]}} > {{경로/대상/출력.xml}}
xml {{[fo|format]}} {{[-o|--omit-decl]}} {{경로/대상/입력.xml|URI}} > {{경로/대상/출력.xml}}
xml {{[fo|format]}} --help