Exemple #1
0
 // Only dictionary, only string supported right now.
 public static void JsonToXml(Json source, XmlElement destination)
 {
     if (source.IsDictionary())
     {
         foreach (KeyValuePair <string, object> kp in source.GetDictionary())
         {
             if (kp.Value is string)
             {
                 destination.SetAttribute(kp.Key as string, kp.Value as string);
             }
         }
     }
 }