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