docs: public static boolean toXml(Object object, File xml) {
          if (object == null) {
              throw new NullPointerException("object对象不存在!");
          }
          JAXBContext jc = null;
          Marshaller m = null;
          try {
              jc = JAXBContext.newInstance(object.getClass());
              m = jc.createMarshaller();
              m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
              m.setProperty(Marshaller.JAXB_ENCODING, ENCODING);
              m.marshal(object, xml);
              return true;
          } catch (Exception e) {
              throw new RuntimeException(e);
          }
      }