@nprofile1q... There are several binary representations of XML, but I can’t give a specific recommendation:
https://en.wikipedia.org/wiki/Binary_XML That would also keep the door open for the XML tools ecosystem (schemas, XPath, XQuery, transformations …) From what I know about ASN.1 from the realm of certificates, I wouldn’t go that way.