jdom学习(2)读取xml文件(转)

用JDOM读取XML文件需先用org.jdom.input.SAXBuilder对象的build()方法建立Document对象,而后用Document类、Element类等的方法读取所需的内容。IBM : developerWorks 中国站上有一个很好的例子: <?xml version="1.0" encoding="UTF-8"?> <HD> <disk name="C"> <capaci
相关文章
相关标签/搜索