Problem using XMLReaderFactory from a plug-in


I have been trying to read an XML File from my plug-in for IDEA but it always seems to throw a ClassCastException while initializing the XMLReader.

Setting the System property "org.xml.sax.driver" doesnt work, it seems like there is some clash with the rt.jar included with the distribution. I even tried replacing the jre with other jdk but it didnt work, seems like it has been customized for IDEA.

Does anyone know any work-around for this? or has faced this problem earlier and found out the reason for the same, do reply.



Please sign in to leave a comment.