Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Formating to XML. Online debug, sry for the spam

  • Loading branch information...
commit 6b330da82ec14ebe8153765451b8535a05481d6d 1 parent cd182f6
@damienalexandre authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 populartagbydays.js
View
8 populartagbydays.js
@@ -211,7 +211,13 @@ for (var day in days_array)
var returnXml = <days></days>;
for (var day in days_array)
{
- var content = y.jsonToXml(days_array[day]);
+ var content = <tags></tags>;
+
+ for (var tag in days_array[day])
+ {
+ content.appendChild( <tag count={days_array[day][tag]}>{tag}</tag> );
+ }
+
content.@day = day;
returnXml.appendChild( content );
Please sign in to comment.
Something went wrong with that request. Please try again.