pysdic.cordin.load_capture_info#

load_capture_info(xml_file)[source]#

Load a capture XML file.

This function parses a CaptureInfo XML file and returns its root element. The returned element can then be passed to the other helper functions of this module.

Parameters:

xml_file (str or pathlib.Path) – Path to the XML file.

Returns:

Root element corresponding to the CaptureInfo node.

Return type:

xml.etree.ElementTree.Element

Examples

>>> root = load_capture_info("CaptureInfo.xml")
>>> print(root.tag)
CaptureInfo