Convert SVG File to JSON to XML

This converts an svg file firstly to JSON. Then the JSON object is converted to XML svg elements, with all attributes as children of each element.
XML:
(See JSON at bottom of web page)

SVG Source:
Javascript:

JSON Object: