Made the validating parser compatabile with java 6