The point is that there is no “normal” XML. You could give an example snippet of how the XML could look like. Choosing which fields you want to expose and how to represent the AST in XML is 100% up to you.
Library wise, one of the packages posted by @kokolegorille will probably work to serialize Elixir data structures into XML, but they will require some serialization logic on your side.






















