✔ 最佳答案
If you just want to find a specific word - you should be able to search for it without considering the file as anything other than a text document.
If you need to know where it is in XML hierarchy terms then you'll need to learn how to use something like DOM (
http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html gives you code to load a file ). You could either walk through the hierarchy testing the content of each node or you might be able to use XPath if what you want fits the criteria.