summaryrefslogtreecommitdiffstats
path: root/misc/xml/format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/xml/format.sh')
-rwxr-xr-xmisc/xml/format.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/xml/format.sh b/misc/xml/format.sh
new file mode 100755
index 0000000..c522f44
--- /dev/null
+++ b/misc/xml/format.sh
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+if [ -z "$1" ]; then
+ echo "Usage: $0 [ xml_file ]"
+ exit 0
+fi
+
+cat $1 | xmllint -format - | xsltproc format.xsl -