ClassCastException 2003-08-07 - By Matt Cohen
Hi,
I've been developing using Xerces 2.4.0 and have successfully completed xsd validation with schema in my application.
However, now that I've moved it to our test machines, I'm getting the following exception:
ClassCastException: com.apache.xerces.dom.DeferredTextImpl
when I try to cast a Node to an Element:
Element elem = (Element)sourceElem.getFirstChild();
And sourceElem is definately not null.
Now, I have xercesImpl.jar at the front of the classpath so no other class copy could be picked up instead. And I can't seem to get why this is so? Is there any other possible package that could cause this? Anyone have any thoughts?
Thanks, -Matt
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|