Hi all!
I am having a bit of problem here regarding HSSF. I am supposed to write a program that retrieves data from XML and output to excel using HSSF (as requested by my supervisor). My program can be compile with warnings, but it gave runtime error.
Exception in
thread "main" java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMNodeList cannot be cast to com.sun.org.apache.xml.internal.dtm.ref.DTMNodeList
at XMLToExcel.generateExcel(XMLToExcel.java:48)
at XMLToExcel.main(XMLToExcel.java:102)
Is there anything that I missed that caused this error?
Another thing would like to ask. My program will have to ask for user input and retrieve the data based on the input. I am using a if loop with GetElementByTag, but it seems to be give me commpile time error.