<!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.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001>Supose I have an xml file like
this:</SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001><?xml ...</SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001><rows></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001> <row
key="1"></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001>
<field1>value1</field1></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001> </row></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001> <row
key="2"></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001>
<field1>value2</field1></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001></SPAN></FONT><FONT face="Century Gothic" color=#0000ff
size=2><SPAN class=075192915-21022001>
</row></SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001></rows></SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001></SPAN></FONT> </DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001>Then I do the following operations:</SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001> - delete row 2</SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001> - modify row 1</SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001> - add row 3</SPAN></FONT></DIV>
<DIV><FONT face="Century Gothic" color=#0000ff size=2><SPAN
class=075192915-21022001></SPAN></FONT> </DIV>
<DIV><FONT face="Century Gothic" color=#0000ff 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 face="Century Gothic" color=#0000ff 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 class=OutlookMessageHeader dir=ltr align=left><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 face=Arial color=#0000ff 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="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><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 target=_blank
href="http://www.ccs.es/">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></BODY></HTML>