#!/bin/sh
echo -n $1
xmltodomtosaxtofi $1 > $1.dom.sax.finf
saxtodomtosaxevent $1 > $1.dom.sax-event
saxtodomtosaxevent $1.dom.sax.finf > $1.dom.sax.finf.sax-event
diff $1.dom.sax-event $1.dom.sax.finf.sax-event > $1.dom.sax.sax-event.diff
if [ -s $1.dom.sax.sax-event.diff ]; then
	echo : FAILED, see $1.dom.sax.sax-event.diff
else
	echo : PASSED
fi
