alek-sys / sublimetext_indentxml

Plugin for Sublime Text editor for reindenting XML and JSON files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid XML not well-formed (invalid token)

jzaruba opened this issue · comments

I am getting invalid token error at 16:82 of the attached file.
I see nothing suspicious there, I have also reformated the same file in IntelliJ Idea w/o a problem.

templates.xml.txt

It feels like this is the same problem with CDATA as in #57

Currently xml.minidom doesn't support CDATA section fully, some tokens there just break parsing. I'm currently looking what can be done with this, starting of test coverage of existing functionality and potential switch from xml.minidom to lxml. However at the moment there is no quick fix for this, sorry!