Hi all,

In my Subcription Shim, I have code to do something like this...
Element modify;
DocumentBuilderFactory dbFactory =
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document docInput = dBuilder.newDocument();
//code fails right here
Node importedNode = docInput.importNode(modify, true);

I am getting "java.lang.ClassCastException / at
org.apache.crimson.tree.XmlDocument.importNode(Xml Document.java:1261)"
error. It doesn't like the importNode method(). I am thinking it has
something to do w/ the jar file in DirXML env. I can run this code
outside of DirXML and it works fine.

Do we have some similar methods that do the same thing as importNode ?

Help is appreciated!


vashon2kool's Profile: http://forums.novell.com/member.php?userid=64780
View this thread: http://forums.novell.com/showthread.php?t=388290