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]
Treemethod- Parameters:
key – An optional callable to be called on each leaf.
- Returns:
nested list of leaves or values of key(leaf) for each leaf
- Return type:
nested list of
Tree
- get_parent_xml_element()[source]
- Returns:
XMLElementwhich child container is attached to.
- property choices_in_reversed_path
- property chosen_child
- property content
- Returns:
Content of a
XMLChildContaineris its core property. It can be of types:XSDSequence,XSDChoice,XSDGrouporXSDElementwhich are used to translate the behaviour of according xsd tags:sequence,choice,groupandelement.
- property force_validate
- property max_is_reached
- property requirements_fulfilled