#! /bin/bash

TMPFILE=$(mktemp)
for i in "$@"
do
	cp "$i" "$TMPFILE"
	xmllint --format "$TMPFILE" > "$i"
done