编写一个java程序,读取下面xml配置文件中rootfile和scanningMethod这两个信息。要完整的程序,急等!
<?xml version="1.0" encoding="UTF-8"?><config>
<filescan>
<rootFile>E://Test</rootFile>
<scanningMethod>txt</scanningMethod>
</filescan>
</config> --------------------编程问答-------------------- 这么点分 就不给完整程序了。
给你个参考的例子
http://www.ibm.com/developerworks/cn/xml/x-javaxpathapi.html
补充:Java , Java相关