added gists/1083506/formatXML.js