Trying to convert some XML into JSON with regular expressions.