In pom.xml, set the "xml-apis" parameter to version 1.4.01:
<dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <version>1.4.01</version> </dependency>
If you are not using maven, you can manually add the xml-apis library, version 1.4.01. You will find banks in the xml-commons binary package called "XML Commons External 1.4.01", and you can download it here: http://xerces.apache.org/mirrors.cgi .
Finally, compile and execute your java application / project with this version of the library.
The version of the xml-apis library version 1.4.01 includes the necessary ElementTraversal class. Other versions, such as 2.0.0, 1.0.0, etc., do not include it, and the application fails to compile.
tremendows Mar 04 '13 at 9:00 2013-03-04 09:00
source share