sarkit.sidd.XmlHelper

class XmlHelper(element_tree)

XmlHelper for SIDD

Methods

load(pattern)

Find and load the first subelement matching pattern in element_tree.

load_elem(elem)

Decode elem (an XML element) to a Python object.

set(pattern, val)

Find and set the first subelement matching pattern in element_tree using val.

set_elem(elem, val)

Encode val (a Python object) into the XML element elem.