XML Editor

The xtp_job_control library offers different funcionality to edit and manipulates the entries of the xml option files.

XML editing function

Funcionality to edit the content of the xml option files for Votca-XTP.

xtp_job_control.xml_editor.edit_xml_options(sections: dict, path_optionfiles: pathlib.Path) → Dict[KT, VT]

Go through the options file: sections dictionary and edit the corresponding XML file by replacing sections in the XML file.

xtp_job_control.xml_editor.edit_xml_file(path: str, xml_file: str, sections: Dict[KT, VT]) → str

Parse the path XML file and replace the nodes given in sections in the XML tree. Finally write the XML tree to the same file

xtp_job_control.workflows.workflow_components.edit_options(options: Dict[KT, VT], names_xml_files: List[T], path_optionfiles: str) → Dict[KT, VT]

(scheduled) Edit a list of XML files names_xml_files that are located in the path_optionfiles using a set of user-defined options.