Issue Description
Is your feature request related to a problem? Please describe.
The exclusive use of xml.etree.ElementTree (ET) in parsing input files may in the future lead to bugs or limit functionality if other non-xml trees are used for input.
Describe the solution you'd like
Replacement of the ET parsing with the broader TreeStructure module in RAVEN (RAVEN/ravenframework/utils/TreeStructure.py) will limit future difficulties. Not all ET functions are available in TreeStructure, and naming of functions differs, so more than a simple find-and-replace will be necessary. One such ET function, used in FORCE/tests/unit-tests/test_heron.py, that has no counterpart in TreeStructure, is ET.fromstring(). This function parses a string with xml formatting into ET structure and is particularly useful for unit tests.
Describe alternatives you've considered
For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.
For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.
Issue Description
Is your feature request related to a problem? Please describe.
The exclusive use of
xml.etree.ElementTree(ET) in parsing input files may in the future lead to bugs or limit functionality if other non-xml trees are used for input.Describe the solution you'd like
Replacement of the
ETparsing with the broaderTreeStructuremodule in RAVEN (RAVEN/ravenframework/utils/TreeStructure.py) will limit future difficulties. Not allETfunctions are available in TreeStructure, and naming of functions differs, so more than a simple find-and-replace will be necessary. One suchETfunction, used inFORCE/tests/unit-tests/test_heron.py, that has no counterpart inTreeStructure, isET.fromstring(). This function parses a string with xml formatting intoETstructure and is particularly useful for unit tests.Describe alternatives you've considered
For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.
For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.