#!/bin/sh
#
# Instance Validator
#
# Validates an instance against a schema.

CP=

if [ -e $XMLBEANS_HOME/build/ar/xbean.jar ]; then
    cp=$cp:$XMLBEANS_HOME/build/ar/xbean.jar;
elif [ -e $XMLBEANS_HOME/lib/xbean.jar ]; then
    cp=$cp:$XMLBEANS_HOME/lib/xbean.jar;
fi

case "`uname`" in
    CYGWIN*)
        CP=`cygpath -w -p $CP`
        ;;
esac

java -classpath $CP org.apache.xmlbeans.impl.tool.InstanceValidator $*
