check if xml files are well formed find ./ -name "*.xml" -exec xmllint --noout {} \; format files in place find . -name "*.xml" -type f -exec xmllint --encode utf8 --output '{}' --format --noblanks '{}' \;