Hello,
I still have a classCastException that I don't understand.
Here is the class hierarchy I have :
interface SecureNode extends Node
interface SecureElement extends SecureNode
interface SecureElementNS extends SecureElement
class SecureElementNSImpl extends ElementNSImpl implements
SecureElementNS
interface SecureDocument extends SecureNode
class SecureDocumentImpl extends DocumentImpl implements
SecureDocument
I parse like that :
DOMParser p = new DOMParser();
p.setProperty("http://apache.org/xml/properties/dom/document-class-name",
"mypackage.SecureDocumentImpl");
p.parse(new InputSource(is));
SecureDocumentImpl doc = (SecureDocumentImpl)p.getDocument();
//here is my problem
SecureElementNS var =
(SecureElementNS)doc.getDocumentElement() ;
I get : java.lang.ClassCastException:
org.apache.xerces.dom.ElementNSImpl
but only with Xerces version > 2 !!!
with previouses version 1.X it's ok...
Can anybody help me ?
Thanks
************************ ADSL JUSQU'A 8 MEGA + 3 MOIS DE TELEPHONE GRATUIT
************************
L'ultra haut d�bit � 15EUR/mois seulement ! Et vous t�l�phonez gratuitement en
France vers les postes fixes,
hors num�ros sp�ciaux pendant 3 mois.
Pour profiter de cette offre exceptionnelle, cliquez ici :
http://register.tiscali.fr/adsl/ (voir conditions sur le site)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]