/**XML转字符串 */
Document document = new SAXReader().read(new File("E:test.xml"));; 
String text = document.asXML(); 

 

/**字符串转XML */
String xmlStr = ****; 
Document document = DocumentHelper.parseText(xmlStr);

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案