用Dom4j怎么解析XML文件?

如下:这一篇XML文件在完全不知道其结构下,怎么解析这篇XMl文件?? 很着急

<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<filter>
    <filter-name>CharactorEncoding</filter-name>
    <filter-class>com.lovo.bookshop.util.CharactorEncoding</filter-class>
    <init-param>
        <param-name>encode</param-name>
        <param-value>UTF-8</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>CharactorEncoding</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>


LoginServlet
com.lovo.bookshop.servlet.LoginServlet


RegServlet
com.lovo.bookshop.servlet.RegServlet


CreateImage
/CreateImage


ShowSearchServlet
/ShowSearchServlet


DetailListServlet
/DetailListServlet


index.jsp

你啥都不知道, 解析什么啊?

那就构建DOM树,遍历所有节点。

有点不太靠谱,写的不符合标准的东西判断起来都麻烦,
和dddd

你要知道解析它用来做什么吧. 不然解析干嘛呀?