Body:
Hello everyone,
I’m encountering an issue with the QSWAT plugin: it was working fine yesterday, but today when I tried to start the editor, I got the following XML parsing error:
2025-05-11T14:52:14 WARNING Traceback (most recent call last):
File "C:\Users\90747\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\QSWAT\QSWAT\qswat.py", line 727, in startEditor
self._gv.setSWATEditorParams()
File "C:\Users\90747\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\QSWAT\QSWAT\globals.py", line 524, in setSWATEditorParams
tree = ET.parse(path)
^^^^^^^^^^^^^^
File "C:\PROGRA~1\QGIS33~1.11\apps\Python312\Lib\xml\etree\ElementTree.py", line 1204, in parse
tree.parse(source, parser)
File "C:\PROGRA~1\QGIS33~1.11\apps\Python312\Lib\xml\etree\ElementTree.py", line 569, in parse
self._root = parser._parse_whole(source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 7, column 53
Environment Information:
Background:
Steps Already Tried:
Questions: Has anyone encountered a similar issue? Could this be caused by a corrupted or misconfigured XML file? How can I locate and fix this XML file? Is reinstalling QSWAT necessary? Thank you very much for your help!
You can easily fix it by reinstalling the SWAT Editor located in C, NOT QSWAT.
--
You received this message because you are subscribed to the Google Groups "SWAT-MODFLOW" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swat-modflow...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/swat-modflow/d7c15d55-a7f7-4fce-b111-078138507254n%40googlegroups.com.
Thank you so much for your kind help! Thanks to your suggestion, I reinstalled SWAT Editor and successfully resolved the QSWAT XML parsing error. Your timely response and expert guidance made the fix process smooth, and I’m truly grateful. Heartfelt thanks for your support—please continue to guide me if I encounter any issues in the future!
Take it easy. You're not alone in the 🌎
To view this discussion visit https://groups.google.com/d/msgid/swat-modflow/tencent_4DBF613B77812B78679D5A1FD76966BE0705%40qq.com.