Alan Martin wrote:
> 
> > I'm xerces newbie so I'm not sure that is correct or not.
> 
> So am I, but I know Java.  ^_^
> 
> > //
> > Node testTarget = document.getElementsByTagName("head").item(0);
> > EventListener TestEventListener = new EventListenerImpl();
> > testTarget.addEventListener( "mutation", TestEventListener, false );
> > //
> 
> How about casting to (NodeImpl),  addEventListener isn't defined in the Node
> interface,  perhaps its a bug,  but thats not your problem. :)

There is no bug. You need to cast to EventTarget. See
org.w3c.dom.events.EventTarget.
-- 
Arnaud  Le Hors - IBM Cupertino, XML Strategy Group

Reply via email to