Going to the XMI should be a last resort. It is not standardised across tools, there are multiple versions of XMI to be aware of and you need a very good understanding of the underlying metamodel.
I would try one of the following first:
look at the built-in reporting features offered by your modelling tool,
look at the tool's public APIs and write a client which pulls out the data you need
In my experience, the reporting tools themselves can be frustrating. The API route may be simpler and give you more control.
Cheers,
David