libxml2-utils
Bu yardımcı program ile birlikte gelir libxml2-utils:
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
xmllint --format -
Perl en XML::Twig
Bu komut XML :: Twig ile birlikte gelir perlmodülü, bazen xml-twig-toolspaket:
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
xml_pp
xmlstarlet
Bu komut aşağıdakilerle birlikte gelir xmlstarlet:
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
xmlstarlet format --indent-tab
tidy
tidyPaketi kontrol edin :
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
tidy -xml -i -
piton
Python'un xml.dom.minidomkutu biçimi XML (python2 ve python3 ikisi):
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
python -c 'import sys;import xml.dom.minidom;s=sys.stdin.read();print(xml.dom.minidom.parseString(s).toprettyxml())'
saxon-lint
Gerekenler saxon-lint:
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
saxon-lint --indent --xpath '/' -
saxon-HE
Gerekenler saxon-HE:
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
java -cp /usr/share/java/saxon/saxon9he.jar net.sf.saxon.Query \
-s:- -qs:/ '!indent=yes'
xmllintDebian sistemlerde kullanılabilir, paketi yüklemeniz gerekirlibxml2-utils(libxml2en azından değil Debian 5.0 "Lenny" ve 6.0 "Squeeze" konulu, bu aracı sağlamaz).