XML validation script