decompose large functions in json2xml.clj into small pieces; output
contained's :id attribute into XML