obspy.io.seiscomp.core.validate

validate(path_or_object, version=None, verbose=False)[source]

Check if the given file is a valid SCXML file.

Parameters:
  • path_or_object (str) – File name or file like object. Can also be an etree element.

  • version (str) – Version of the SCXML schema to validate against.

  • verbose (bool) – Print error log if True.

Return type:

bool

Returns:

True if SCXML file is valid.