[Htmlparser-user] ClassCastException
Brought to you by:
derrickoswald
|
From: Kevin R. G. <kg...@pr...> - 2006-10-05 13:44:28
|
Hello,
I am trying to do the following:
htmlRow =3D pu.trimTags(htmlRow, new String[] { "a" ,"img"}, false, =
false);
However, I am receving this error.=20
Caused by: java.lang.ClassCastException: org.htmlparser.tags.ImageTag
at org.htmlparser.util.ParserUtils.getLinks(ParserUtils.java:1167)
at org.htmlparser.util.ParserUtils.trimTags(ParserUtils.java:984)
at =
com.protech.util.Table2Excel.exportHtmlTableAsExcel(Table2Excel.java:192)=
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
The error only occurs on the "img" string. If I remove it everything =
works fine.
How can I solve this issue.=20
Thanks in advance.
|