2013年3月5日

用SAXBuilder、Document、Element操作xml

摘要: 摘自:http://blog.163.com/cui_zhouyang/blog/static/7033972120093911330375/import org.jdom.Document;import org.jdom.Element;import org.jdom.JDOMException;import org.jdom.input.SAXBuilder;import org.jdom.output.XMLOutputter;(1)使用JDOM首先要指定使用什么解析器。如:SAXBuilderbuilder=newSAXBuilder(false); 这表示使用的是默认的解析器(2)将 阅读全文

posted @ 2013-03-05 18:33 青春丶冭柔情 阅读(448) 评论(0) 推荐(0)

导航