write_url¶
- igwn_ligolw.utils.write_url(xmldoc, url, **kwargs)¶
Writes the LIGO Light Weight document tree rooted at xmldoc to the URL name url.
NOTE: only URLs that point to local files can be written to at this time. Internally, write_filename() is used to perform the write. All additional keyword arguments are passed to that function. The implementation might change in the future, especially if support for other types of URLs is ever added.
Example:
>>> write_url(xmldoc, "file:///data.xml") >>> write_url(xmldoc, "file:///data.xml.gz", compress = 'gz')