View Source Idmlx.Updater.XML (idmlx v0.2.1)

Helper functions for XML manipulation in IDMS files.

Summary

Functions

Updates an attribute of an XML element if the value is present.

Normalizes attribute values for XML elements.

Replaces a single element in an XML document.

Replaces elements in an XML document.

Updates an attribute of an XML element.

Functions

maybe_update_attribute(element, attr, value)

Updates an attribute of an XML element if the value is present.

normalize_attribute_value(value)

Normalizes attribute values for XML elements.

replace_element(xml, old_element, new_element)

Replaces a single element in an XML document.

replace_elements(xml, old_elements, new_elements)

Replaces elements in an XML document.

update_element_attribute(element, attribute, value)

Updates an attribute of an XML element.