msml.xml

msml.msml_xml provides functionality to read and process MSML XML-Files to the msml Python models.

Functions

element_factory(element_node)
etree_to_dict(t)
get_default_scheme()
keyval_factory(meta_node)
load_alphabet([folder, file_list]) Load and build the Alphabet
load_msml_file(fil) Process the given XML-File to and MSMLFile object.
msml_file_factory(msml_node)
operator_factory(operator_node)
parse_file(R)
xmldom(files[, schema])

Classes

Exceptions

msml.xml.load_alphabet(folder=None, file_list=None)[source]

Load and build the Alphabet

Parameters:
  • folder (str or path.path) – a name of a folder
  • file_list (list) – list of file names
Returns:

an alphabet object, not validated

Return type:

Alphabet

msml.xml.load_msml_file(fil)[source]

Process the given XML-File to and MSMLFile object.

Args:
fil (str): filename of an existing XML file
Returns:
MSMLFile
msml.xml.xmldom(files, schema=None)[source]