open_xmldoc#
- gwpy.io.ligolw.open_xmldoc( ) Document[source]#
Try and open an existing LIGO_LW-format file, or create a new Document.
- Parameters:
- fobj
str,file file path or open file object to read
- contenthandler
ContentHandler, optional the content handler with which to parse the document, if not given a default handler will be created using
default_content_handler().- **kwargs
other keyword arguments to pass to
load_fileobj()as appropriate
- fobj
- Returns:
- xmldoc
Document either the
Documentas parsed from an existing file, or a new, emptyDocument
- xmldoc