Exemple #1
0
 /** Java Object->Xml with encoding. */
 public static String toXml(Object root, String encoding) {
   Class clazz = Reflections.getUserClass(root);
   return toXml(root, clazz, encoding);
 }
Exemple #2
0
 /** Java Object->Xml without encoding. */
 public static String toXml(Object root) {
   Class clazz = Reflections.getUserClass(root);
   return toXml(root, clazz, null);
 }