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='.')[source]¶
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)[source]¶
- 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)[source]¶
- schrodinger.application.matsci.qexsd.qespresso.xsdtypes.etree.xml_to_dict(root_node, dict_class=<class 'dict'>, spaces_for_tab=4)[source]¶
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