<p>How about importing the XML into a relational database, then using SQL for writing reports? </p>
<p>For example MySQL can import XML into tables and columns.</p>
<p>Here is the command <br>
<a href="https://dev.mysql.com/doc/refman/5.5/en/load-xml.html">https://dev.mysql.com/doc/refman/5.5/en/load-xml.html</a></p>
<p>The challenge is finding out the schema details and mapping it to tables.</p>