[Java]: Moved schema validation to XmlSchemaParser.