Exemple #1
0
 public String toXml() {
   XMLFactory factory = new XMLFactory(Page.class, getModelClass());
   String xml = null;
   try {
     xml = factory.marshal(this);
   } catch (Exception e) {
     log.error("生成XML出错", e);
   }
   return xml;
 }