pyampact.symbolicUtils.remove_namespaces

pyampact.symbolicUtils.remove_namespaces(doc)[source]

Indent an MEI (Music Encoding Initiative) element for better readability.

This function recursively indents an MEI element and its children, improving the readability of the MEI XML structure. It modifies the input element in-place.

Parameters:
  • elem – An xml.etree.ElementTree.Element representing the MEI element.

  • level – An integer representing the current indentation level. Default is 0.

Returns:

None