XQuery-based xml validation tool