<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.2919.6307" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=621021816-21022001>I'm
sorry to say I think this has the feel of a bad idea.... ;^)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=621021816-21022001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=621021816-21022001>However, if you are going to try it, I would assume
that the application that builds the xml would *have* to know if the data was
something created or modified. With that
assumption....</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=621021816-21022001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=621021816-21022001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=621021816-21022001>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001><?xml ...</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001><rows></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> <row key="1"<SPAN
class=621021816-21022001> action</SPAN><SPAN
class=621021816-21022001>="update"</SPAN>></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>
<field1>value1</field1></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> </row></SPAN></FONT></DIV>
<DIV><SPAN class=075192915-21022001>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> <row key="2"<SPAN
class=621021816-21022001> acti</SPAN><SPAN
class=621021816-21022001>on="</SPAN><SPAN
class=621021816-21022001>insert"</SPAN>></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>
<field1>value2</field1></SPAN></FONT></DIV>
<DIV><SPAN class=075192915-21022001></SPAN><FONT color=#0000ff
face="Century Gothic" size=2><SPAN class=075192915-21022001>
</row></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001><SPAN class=621021816-21022001>
<row key="3" action="delete"></SPAN></SPAN></FONT></DIV></SPAN></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001></rows></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001><SPAN class=621021816-21022001>good
luck!</SPAN></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic"><SPAN
class=075192915-21022001></SPAN></FONT><FONT color=#0000ff
size=2> </FONT></SPAN></FONT><FONT face=Tahoma size=2>-----Original
Message-----<BR><B>From:</B> Josep Miquel Garcia Rodriguez
[mailto:JMGarcia@ccs.es]<BR><B>Sent:</B> Wednesday, February 21, 2001 9:56
AM<BR><B>To:</B> 'GB/DEV - Philip Nelson';
'jdom-interest@jdom.org'<BR><B>Subject:</B> RE: [jdom-interest] Tracking
changes<BR><BR></DIV></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>Supose I have an xml file like
this:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001><?xml ...</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001><rows></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> <row
key="1"></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>
<field1>value1</field1></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> </row></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> <row
key="2"></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>
<field1>value2</field1></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001></SPAN></FONT><FONT color=#0000ff
face="Century Gothic" size=2><SPAN class=075192915-21022001>
</row></SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001></rows></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>Then I do the following
operations:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> - delete row 2</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> - modify row 1</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001> - add row 3</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>Then I have to save the xml file in the RDBMS.
Currently the only way I have is to delete all the rows and make an insert for
each row in the final xml. This is very costly in more complicated examples
(header and lines, etc.)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Century Gothic" size=2><SPAN
class=075192915-21022001>I would like to do three operations (delete, update
and insert) but for that I need to track the modifications on the
xml.</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> GB/DEV - Philip Nelson
[mailto:philip.nelson@omniresources.com]<BR><B>Sent:</B> miércoles, 21 de
febrero de 2001 16:06<BR><B>To:</B> 'Josep Miquel Garcia Rodriguez';
'jdom-interest@jdom.org'<BR><B>Subject:</B> RE: [jdom-interest] Tracking
changes<BR><BR></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=778480815-21022001>No
JDOM doesn't have any feature like this. Then I might ask, what are
you trying to accomplish. Doing essentially a diff on an xml document
doesn't seem like a very good way to track changes to data. Or are you
trying to do something else?</SPAN></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Josep Miquel Garcia
Rodriguez [mailto:JMGarcia@ccs.es]<BR><B>Sent:</B> Wednesday, February 21,
2001 8:31 AM<BR><B>To:</B> 'jdom-interest@jdom.org'<BR><B>Subject:</B>
[jdom-interest] Tracking changes<BR><BR></DIV></FONT>
<DIV><SPAN class=853570011-21022001><FONT face="Century Gothic"
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=853570011-21022001><FONT face="Century Gothic"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=853570011-21022001><FONT face="Century Gothic" size=2>we
are currently using JDOM in order to manage a XML retrieved from a
database. For performance, we would like to track the changes as they
occur, does JDOM provide any mechanism for this tracking. I was thinking
in something like a listener that gains control each time the document is
updated.</FONT></SPAN></DIV>
<DIV><SPAN class=853570011-21022001><FONT face="Century Gothic" size=2>If
this mechanism doesn't exist, I'm considering to do a wrapper but
this would implie duplicate all the api. Have you any other ideas? Do you
know somebody working in this line?</FONT></SPAN></DIV>
<DIV><SPAN class=853570011-21022001><FONT face="Century Gothic"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=853570011-21022001><FONT face="Century Gothic"
size=2>thanks,</FONT></SPAN></DIV>
<DIV><B><FONT face="Century Gothic" size=2></FONT></B> </DIV>
<DIV><B><FONT face="Century Gothic" size=2>Josep Miquel García</FONT></B>
<BR><B><FONT face="Century Gothic" size=2>CCS</FONT></B> <FONT
face="Century Gothic" size=2>- Dirección Técnica</FONT> <BR><FONT
face="Century Gothic" size=2>Tel. +34 937 489 600 ext.2334</FONT>
<BR><FONT face="Century Gothic" size=2>Fax +34 937 489 601</FONT>
<BR><FONT face="Century Gothic" size=2><A href="http://www.ccs.es/"
target=_blank>http://www.ccs.es</A></FONT> <BR><FONT face="Century Gothic"
size=2><A href="mailto:jmgarcia@ccs.es">mailto:jmgarcia@ccs.es</A></FONT>
</DIV>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>