<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
You're not alone. We had the same idea and actually implemented interfaces, specialist JDOM factories and specialist JDOM nodes to support this (including event notification up the DOM hierarchy). Sadly, due to a small number of issues within JDOM itself we have had to patch the original JDOM code to enable correct event handling (specifically wrt insertion and deletion of nodes). The other problem we face is that we have to have a certain amount of &quot;inside knowledge&quot; of the JDOM classes in order to achieve this. This has meant that we're now &quot;stuck&quot; on JDOM Beta 9 (Beta 10's implementation was radically altered by the introduction of the Parent and Child interfaces - IMHO a common &quot;Node&quot; interface would have been far more useful, allowing the removal of &quot;Object&quot; from JDOM's API in most cases).<BR>
<BR>
It would be fantastic if JDOM itself had this support, but I doubt if you'll ever see it given previous discussions on this topic.<BR>
<BR>
Phil :n(<BR>
<BR>
On Tue, 2004-09-07 at 03:59, Ravi Bhatia wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Hi,

Greetings. I was wondering if the JDOM library could support events. This is
useful in the Model-View-Controller paradigm, when an XML document is used to
represent the core data model. If a org.jdom.Document object could fire events
when it changes, a Listener that has registered with it could be notified.
Hence, allowing a View to reflect these changes immediately. 

I believe, by using events, changes in the underlying XML document could be
propagated in a simpler and cleaner fashion.

Thank you.</I></FONT></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Phil Weighill-Smith &lt;<A HREF="mailto:phil.weighill-smith@volantis.com"><U>phil.weighill-smith@volantis.com</U></A>&gt;<BR>
Volantis Systems
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>