xsugar is a similar solution (to a different problem): a mapping between a context free grammar and XML grammar, thus between text and XML.
https://www.brics.dk/xsugar/
XSugar makes it possible to manage dual syntax for XML languages. An XSugar specification is built around a context-free grammar that unifies the two syntaxes of a language. Given such a specification, the XSugar tool can translate from alternative syntax to XML and vice versa