可以参考这篇博客:http://blog.csdn.net/napoay/article/details/51064331
1,选用DocumentBuilderfactory2,缺少jar包
嗯,那你用原来的类处理吧,原来的类可能是缺少jar包