I am not a mathematician. But there is also a JSON representation [0] besides XML. As an exchange format between pieces of software, isn't it usable?
[0] https://www.openmath.org/standard/om20-2019-07-01/omstd20.ht...
[0] https://www.openmath.org/standard/om20-2019-07-01/omstd20.ht...
I agree with the other comment that it would have been better to look at e.g. theorem provers or maybe even at something like Mathematica.