#!/bin/sh
echo -n $1 
xmltosaxtofi $1 > $1.sax.finf
xmltodomtosaxtofi $1 > $1.dom.sax.finf
diff $1.sax.finf $1.dom.sax.finf > $1.sax.dom.sax.diff
if [ -s $1.sax.dom.sax.diff ]; then
	#od -t x1 $1.sax.finf > $1.sax.finf.od
	#od -t x1 $1.dom.sax.finf > $1.dom.sax.finf.od
	echo : FAILED
else
	echo : PASSED
fi
