DOM4J is an open source XML parsing package produced by dom4j.org. DOM4J is an easy-to-use, open Source Library for Xml,xpath and XSLT. It is applied to the Java platform, with a Java collection framework and full support for Dom,sax and JAXP.
DOM4J Download jar Package: Http://downloads.sourceforge.net/dom4j/dom4j-1.6.1.jar
Jaxen (Support for XPath): Http://dist.codehaus.org/jaxen/distributions/jaxen-1.1.1.zip
1.DOM4J Main interface
The DOM4J main interface is defined in the ORG.DOM4J package.
-node defines polymorphic behavior for all XML nodes in the dom4j;
-branch defines a public behavior for nodes that can contain child nodes such as XML elements (element) and documents (docuemnts);
|-element defines XML elements;
|-document defines the XML document;
-documenttype defines the XML DOCTYPE declaration;
-entity defines XML entity;
-attribute defines the attributes of XML;
-processinginstruction defines XML processing instructions;
-characterdata is an identification excuse for identifying character-based nodes. such as Cdata,comment, Text;
|-CDATA Defines an XML CDATA region;
|-text defines an XML text node;
|-Comment defines the behavior of XML annotations;