schrodinger.application.matsci.qexsd.qespresso.xsdtypes.etree module¶
This module contains XMLDocument class for xsdtypes package
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.etree.
etree_iter_path
(node, tag=None, path='.')¶ A version of ElementTree node’s iter function that return a couple with node and his relative path.
- Parameters
node –
tag –
path –
- Returns
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.etree.
etree_to_dict
(etree, xml_schema, dict_class=<class 'dict'>, spaces_for_tab=4, use_defaults=True)¶
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.etree.
etree_node_to_dict
(root_node, xml_schema, root_path='.', dict_class=<class 'dict'>, spaces_for_tab=4, use_defaults=True)¶
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.etree.
xml_to_dict
(root_node, dict_class=<class 'dict'>, spaces_for_tab=4)¶ Converts an XML ElementTree to a dictionary
- Parameters
root_node – Root node (Element) of the XML ElementTree
dict_class – Dictionary type subclass to create
spaces_for_tab – If not None, substitute tab characters with N spaces
- Returns
Dictionary representing the XML document
-
schrodinger.application.matsci.qexsd.qespresso.xsdtypes.etree.
dict_to_xml
(xml_dict)¶ Converts a dictionary into an XML ElementTree Element