load_filename

igwn_ligolw.utils.load_filename(filename, verbose=False, **kwargs)

Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. stdin is parsed if filename is None. Helpful verbosity messages are printed to stderr if verbose is True. All other keyword arguments are passed to load_fileobj(), see that function for more information.

Example:

>>> xmldoc = load_filename("test/demo.xml", verbose = True)