摘要: 一、读取Xml文档 xml文档内容: 代码实现: 1 try{ 2 File myFile=new File("E:\\SourceCode\\JavaWorkspace\\Xml\\XmlFiles\\Candidate.xml"); 3 DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance(); 4 DocumentBuilder builder=factory.newDocumentBuilder(); 5 Document doc = builder.parse(myFile); 6 No 阅读全文
posted @ 2011-06-03 00:23 edisonfeng 阅读(250) 评论(0) 推荐(0) 编辑