Skip to content
Browse files

Formating to XML. Online debug, sry for the spam

  • Loading branch information...
1 parent cd182f6 commit 6b330da82ec14ebe8153765451b8535a05481d6d @damienalexandre committed Dec 27, 2010
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 );

0 comments on commit 6b330da

Please sign in to comment.
Something went wrong with that request. Please try again.