Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Communicating delta's of an XML document from client to a server. (http://www.velocityreviews.com/forums/t480451-communicating-deltas-of-an-xml-document-from-client-to-a-server.html)

shettync@gmail.com 03-07-2007 03:55 AM

Communicating delta's of an XML document from client to a server.
 
Hi,

In one of the projects that I am working on, have been sending xml
messages back n forth btw the client(swing) and the corba server. The
serialized objects(in xml representation) are rich complex types (with
nested objects within).Currently am using a homegrown java xml
serialization mechanism which I plan to replace with a databinding
framework like JAXB.
The server typically deserializes this xml to a java object and
applies some basic business validation and performs CRUD operations
via DAO layer.

I am finding that there is significant amt of overhead in sending
these complete xmlized object for insert and every subsequent update.
Question is how would one end up sending just xml delta(only the data
that has changed) on UPDATEs, instead of sending the complete
serialized object(xml).

This question was asked way back in 2002, suggestions were made to use
xpath, but wanted to followup and get more pointers.

Please also take a look at the original thread:
http://groups.google.com/group/micro...20be6324245084

Any inputs will be very helpful.

Thanks,
?n


Joe Kesselman 03-07-2007 01:01 PM

Re: Communicating delta's of an XML document from client to a server.
 
shettync@gmail.com wrote:
> Question is how would one end up sending just xml delta(only the data
> that has changed) on UPDATEs, instead of sending the complete
> serialized object(xml).


There has been some good work done in diff/patch tools for XML; if you
websearch for "xml diff" you ought to find some of that.

Unfortunately IBM's early xmldiff tool on alphaWorks had a dependency on
other code which is no longer available, and so was shelved; I've
occasionally thought that one ought to be revived.


(Apologies for not including microsoft.public.xml in my replies, but
"public" appears to be a misnomer; it refuses to accept my posts.)



--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.