xmlzen是一个轻量级的Java工具用于解析XML和DOM文档。
示例代码:
String xml = XmlBuilder.newXml("UTF-8", true) .openTag("xml").withAttribute("id", 1) .openTag("thisishow") .withValue("you can build") .closeTag() .openTag("your").withAttribute("xml", "nicely").toString(true);