I'm parsing XML in java using StaX, but my XML is not well-formed so the parser will throw error. In XML, there are unclosed-tags
for example :
<person>
<name>John</name>
<age>21
...
...
</person>
the <age>
tag doesn't has closed tag </age>
. So I need to fix the XML first..
how can I fix the XML to close the unclosed-tag?
is there a library to do this ? I've tried JTidy & HTMlCleaner, but I still can't figure out how to fix the XML. I need library in java, not stand alone app. Thanks