sharepoint enterprise – Xml file comparison

Good afternoon All,

I want to compare XML file stored in SharePoint Online with its previous version and show the difference between them.

Could you please suggest any feature in SharePoint Online or custom solution to achieve it?

Thank you very much for your support.

Maple Leaf