How to create XML from Vue.js - Client based

I’m trying to find a way to create an XML from vue.js fields. This way should be client based and actually I have no idea about it. If I used a server to send the fields I am sure I would have no problems…

I searched a lot on Google, by the way the only option I found is Nunjucks, but I don’t know if it works with XML.

Have you some ideas to solve this problem?

Can you see my answer?