[jdom-interest] Tracking changes

GB/DEV - Philip Nelson philip.nelson at omniresources.com
Wed Feb 21 08:18:58 PST 2001

I'm sorry to say I think this has the feel of a bad idea.... ;^)
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....
<?xml ...
    <row key="1" action="update">
    <row key="2" action="insert">
    <row key="3" action="delete">
good luck!
 -----Original Message-----
From: Josep Miquel Garcia Rodriguez [mailto:JMGarcia at ccs.es]
Sent: Wednesday, February 21, 2001 9:56 AM
To: 'GB/DEV - Philip Nelson'; 'jdom-interest at jdom.org'
Subject: RE: [jdom-interest] Tracking changes

Supose I have an xml file like this:
<?xml ...
    <row key="1">

    <row key="2">
Then I do the following operations:
    - delete row 2
    - modify row 1
    - add row 3
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.)
I would like to do three operations (delete, update and insert) but for that
I need to track the modifications on the xml.

-----Original Message-----
From: GB/DEV - Philip Nelson [mailto:philip.nelson at omniresources.com]
Sent: miércoles, 21 de febrero de 2001 16:06
To: 'Josep Miquel Garcia Rodriguez'; 'jdom-interest at jdom.org'
Subject: RE: [jdom-interest] Tracking changes

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?

-----Original Message-----
From: Josep Miquel Garcia Rodriguez [mailto:JMGarcia at ccs.es]
Sent: Wednesday, February 21, 2001 8:31 AM
To: 'jdom-interest at jdom.org'
Subject: [jdom-interest] Tracking changes

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
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?
Josep Miquel García 
CCS - Dirección Técnica 
Tel. +34 937 489 600 ext.2334 
Fax +34 937 489 601 
http://www.ccs.es <http://www.ccs.es/>  
mailto:jmgarcia at ccs.es <mailto:jmgarcia at ccs.es>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010221/9e6d478b/attachment.htm

More information about the jdom-interest mailing list