How can I parse split XML files in Java?
I am receiving XML files from an external source that I have no control over. Some of the XML files are broken. In particular, some closing tags are missing at the end of the file. It goes something like this:
<?xml version="1.0" encoding="UTF-8" ?>
<a>
<b>
<c/>
</b>
<b>
<c/>
</a>
I think our system will be fine if we just ignore elements that do not have a matching end tag.
What library can I use to parse what I can use in such XML files?
+3
source to share