Out of the box or a free solution, I am not aware.
In the scenarios that I had few months ago, for those specific files, the Adobe pro was the best in exporting to XML in a good format. Adobe Pro have a monthly fee, maybe this is good for your process.
If you process is important, you might need to invest some money in a third party application.
Vasile.