- _write_stationxml(inventory, file_or_file_object, validate=False, **kwargs)¶
Writes an inventory object to a buffer.
- inventory (Inventory) The inventory instance to be written.
- file_or_file_object The file or file-like object to be written to.
- validate (bool) 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.