Wayne Johnson wrote:
Do I have to subclass the ElementImpl? When I try this, and then attempt
to cast the Element returned by getDocumentElement to my subclass, I get
a java.lang.ClassCastException.
Subclass both ElementImpl and DocumentImpl. You have to
change the factory so that it returns your element types
from createElement and createElementNS.
Once you do that, you can set the document factory on
the DOMParser. Check the properties page in the docs for
information.
--
Andy Clark * [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]