obspy.io.seiscomp.core._is_sc3ml

_is_sc3ml(path_or_file_object)[source]

Simple function checking if the passed object contains a valid scxml file according to the list of versions given in parameters. Returns True of False.

The test is not exhaustive - it only checks the root tag but that should be good enough for most real world use cases. If the schema is used to test for a StationXML file, many real world files are false negatives as they don’t adhere to the standard.

Parameters:

path_or_file_object (str) – File name or file like object.

Return type:

bool

Returns:

True if file is a SCXML file.