[jdom-interest] Tracking changes

Josep Miquel Garcia Rodriguez JMGarcia at ccs.es
Wed Feb 21 07:55:50 PST 2001


Supose I have an xml file like this:
<?xml ...
<rows>
    <row key="1">
        <field1>value1</field1>
    </row>
    <row key="2">
        <field1>value2</field1>
    </row>
</rows>
 
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


Hi,
 
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.
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?
 
thanks,
 
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/e8434789/attachment.htm


More information about the jdom-interest mailing list