Imagine you have a client application which hold an XML document.
It allows the user via a GUI to make modifications upon it, how would
you update the server application, holding the original of the document,
about it? Is always the whole document communicated or also only the
editted parts. In case of small documents, it wouldn't hurt to sent it
completly,
but in case of big ones, sending the edits only would be benifitial due
to smaller bandwidth. I'm curious in that situation how the schema would
like, and if all, a schema is possible or necessary.
Jan
My first thought here was that if the client could identify the nodes of the
document that had changed, then it could send XML fragments representing
those nodes, along with an XPath expression telling the server where this
node should be placed within the whole document. The server could then just
replace the node with the new version.
How does that sound?
kenny
Quick response! :)
Sounds cool to me, and what about the schema? Due to sending only parts,
the original schema cannot be used anymore.
Jan
"Kenny MacLeod" <usenet.2....@spamgourmet.com> wrote in message
news:amlcdp$7093n$1...@ID-149587.news.dfncis.de...
How would you indicate a node has been created or deleted?
Jan
"Kenny MacLeod" <usenet.2....@spamgourmet.com> wrote in message
news:amlcdp$7093n$1...@ID-149587.news.dfncis.de...
Just some pointers, no idea if anything of this is useful for you:
The "XML Fragment Interchange" W3C Spec:
<http://www.w3.org/TR/xml-fragment>
A Python XML diff:
<http://www.logilab.org/xmldiff/>
This one (optionally) uses the XUpdate format:
<http://xmldb.org/xupdate/index.html>
Another XML diff for .NET:
<http://www.gotdotnet.com/team/xmltools/xmldiff/overview.html>
hth
Henrik
Don't use a schema, then. Or only apply the schema to the modified document
once the server has applied the delta.
OK then, send the new node, the XPath expression, and a create/update/delete
flag indicating the required action.
I'm not really sure what schema details you are inquiring about however.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jan Brunia" <j.j.b...@speed.a2000.nl> wrote in message
news:5lqj9.7023$Mh3.1...@amsnews03.chello.com...
This is allreally good info to pursue: XML Diff and XUpdate.
What I meant about needing a schema was for the delta's communicated,
just like is used for XML Diff where is indicated what is deleted, created
etc.
Thank you all!!
Jan
"Dare Obasanjo" <da...@NO.SPAM.microsoft.com> wrote in message
news:uCsOusqYCHA.2260@tkmsftngp09...