obspy.io.seiscomp.core.validate

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

Check if the given file is a valid SC3ML file.

Parameters:
  • path_or_object (str) File name or file like object. Can also be an etree element.
  • version (str) Version of the SC3ML schema to validate against.
  • verbose (bool) Print error log if True.
Return type:

bool

Returns:

True if SC3ML file is valid.