java saxbuilder 读取xml
摘要:
import java.util.*;import org.jdom.*;import org.jdom.input.SAXBuilder;public class Sample1 { public static void main(String[] args) throws Exception{ SAXBuilder sb=new SAXBuilder(); Document doc=sb.build(Sample1.class.getClassLoader().getResourceAsStream("beans.xml")); //构造文档对象 Element roo 阅读全文
posted @ 2013-03-10 14:01 章术 阅读(743) 评论(0) 推荐(0) 编辑