obspy.io.stationxml.core._write_stationxml

_write_stationxml(inventory, file_or_file_object, validate=False, nsmap=None, level='response', **kwargs)[source]

Writes an inventory object to a buffer. :type inventory: Inventory :param inventory: The inventory instance to be written. :param file_or_file_object: The file or file-like object to be written to. :type validate: bool :param validate: If True, the created document will be validated with the

StationXML schema before being written. Useful for debugging or if you don’t trust ObsPy. Defaults to False.
Parameters:nsmap (dict) Additional custom namespace abbreviation mappings (e.g. {“edb”: “http://erdbeben-in-bayern.de/xmlns/0.1”}).