private String getTypeString() {
		if (verifierType == PSPEC_TYPE) {
			return PROCESSOR_TYPESTRING;
		}
		if (verifierType == LDEFS_TYPE) {
			return LANGUAGE_TYPESTRING;
		}
		return COMPILER_TYPESTRING;
	}
Validate SLEIGH related XML configuration files: .cspec .pspec and .ldefs

A ResourceFile containing an XML document can be verified with one of the
static methods:
   - validateCspecFile
   - validateLdefsFile
   - validatePspecFile

Alternately the class can be instantiated, which will allocate a single verifier
that can be run on multiple files.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/SleighLanguageValidator.java