same trick as before, we can do a `jsonNode.attributes.forEach(function(att) { node.setAttribute(att, jsonNode.attributes[attr]); }` here