I export the XML tree in the DOM, then save that text as an XML document. I used AngularJS for the web application, and JavaScript to create the XML feed.
A simple command processing engine in C++ using Qt and QtScriptEngine for parsing JSON. The server, which initiates simple exchanges, is written trivially in Ruby.