I am trying to parse an XML file with but ran into an error message invalid byte 2 of 2-byte UTF-8 sequence
invalid byte 2 of 2-byte UTF-8 sequence
I had the same problem. My problem was that I created a new XML file with jdom and the FileWriter(xmlFile). The FileWriter was not able to create a UTF-8 File. Instead using the FileOutputStream(xmlFile) solved it.