xsd.xsdtree

class musicxml.xsd.xsdtree.XSDTree(xml_element_tree_element, *args, **kwargs)[source]

Bases: Tree

XSDTree gets a xml.etree.ElementTree.Element by initiation as its xml_element_tree_element property and prepares all needed information for generating a XSDTreeElement class (XSDTreeElement can be XSDSimpleType, XSDComplexType, XSDGroup, XMLAttribute and XMLAttributeGroup)

get_attributes()[source]
get_children()[source]

Tree method

Returns:

list of added children.

Return type:

List[Tree]

get_complex_content()[source]
get_complex_content_extension()[source]
get_doc()[source]
get_pattern(parent_xsd_tree=None)[source]
get_permitted()[source]
get_restriction()[source]
get_simple_content()[source]
get_simple_content_extension()[source]
get_union()[source]
get_union_member_types()[source]
get_xsd()[source]
get_xsd_indicator()[source]
property compact_repr

Tree property

Returns:

compact representation of a node. Default is the string representation. This property is used as default in the tree_representation method and can be customized in subclasses to get the most appropriate representation.

Return type:

str

property is_complex_type
property is_simple_type
property name
property namespace
property tag
property text
property type
property xml_element_tree_element
property xsd_element_class_name
property xsd_tree_base_class_names
class musicxml.xsd.xsdtree.XSDTreeElement[source]

Bases: object

Abstract class of all generated XSD Classes

classmethod get_xsd()[source]
classmethod get_xsd_tree()[source]
XSD_TREE: XSDTree | None = None