XMLCHILDCONTAINER
Warning
This documentation is still under construction!
- class musicxml.xmlelement.xmlchildcontainer.XMLChildContainer(content, min_occurrences=None, max_occurrences=None, populate_children=True, *args, **kwargs)[source]
Bases:
Tree- check_requirements(intelligent_choice=False)
- get_leaves(function=None)[source]
Tree method
- Parameters:
key – An optional callable to be called on each leaf.
- Returns:
nested list of leaves or values of key(leaf) for each leaf
>>> root.get_leaves() [child1, [[greatgrandchild1, greatgrandchild2], grandchild2], child3, [grandchild3]]
- get_parent_xml_element()[source]
- Returns:
XMLElementwhich child container is attached to.
- property choices_in_reversed_path
- property chosen_child
- property content: Any
- property force_validate
- property max_is_reached
- property requirements_fulfilled