473,236 Members | 1,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,236 software developers and data experts.

Represent deleted data with XML

Hello,

I am trying to find a good solution of how to notify the consumer of
the XML that the data (that was being described by the XML) was
deleted on the producer side.

Big picture:
producer ---encodeXML--> Network ---decodeXML--> consumer
The XML that I'm sending is not a list of all the data. The XML only
contains the changes made to the data. For example, if I update
data1's units attribute and add a data15 node, then that's all that is
sent to the consumer is:
<consumer>
<data1 units="ms" />
<data15 units="s" V="50" />
</consumer>

This works fine for adding or updated data. However, the problem I
have is how do I represent deletion of data in XML? For example if
source deletes "data7"

My first thought was to have an attribute called "deleted" that I
would set to true when I delete a node
<consumer>
<data7 deleted="true" />
</consumer>

This works except sometimes attributes represent data, and how would
you specify that the attribute was deleted and not the element. Any
thoughts?

If there isn't a good answer, maybe the option is to make sure that
attributes (or what they represent) cannot be deleted. :(

Thanks for the help,
-Nate
Jul 20 '05 #1
1 1272
Hi,
Are you familiar with Xupdate (part of Apache XIndice XML db)?
http://www.xmldb.org/xupdate/

That might give you some ideas or complete implementation; that
depends on your needs of course.

There's also a lot of XML merging/patching tools available like libxml based
XMLStarlet http://xmlstar.sourceforge.net/ see
http://www.ixemel.nl/xmlapps/utilities.html for more tools.

I remember Microsoft ADO has/had(?) ability to serialize its recordsets to
XML
and an ability to update/modify recordset by sending XML patches.

"Nate" <st******@msoe.edu> wrote in message
news:d0**************************@posting.google.c om...
Hello,

I am trying to find a good solution of how to notify the consumer of
the XML that the data (that was being described by the XML) was
deleted on the producer side.

with respect,
Toni Uusitalo
"And I wish that I was made of stone
So that I would not have to see
A beauty impossible to define
A beauty impossible to believe"
- Nick Cave (Brompton Oratory) - romanticist?
"There are lots of myths that people have around issues of beauty and
attraction, and part of the issue is to stop thinking about things in terms
of myth, but to use the tools of neuroscience, and start dissecting and
understanding how things actually function," said Dr. Hans Breiter, a
psychiatrist and co-author of the study."
- The Brain Is Stimulated by Beauty, Study Finds - abcnews.com - scientist?

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Abhijit | last post by:
I am working in a data warehousing environment which gets sourced from Oracle ERP (AR/GL/AP). The dimensional entities associated with incoming data are GL Code (e.g. 110), Department (e.g. 1050),...
11
by: SWE | last post by:
Knifflige Frage zu Datenbanken: Es gibt Tabellen, die mehr als ein PK-Feld haben; also z.B.MAID und GMID. Soweit ok. Nehmen wir an, aus dieser Tabelle sollen keine Datensätze physikalisch...
9
by: Robert Brown | last post by:
Our customer (of our ecommerce system) wants to be able to preserve deleted entities in the database so that they can do reporting, auditing etc. The system is quite complex where each end user...
3
by: Chumley the Walrus | last post by:
IN my code behind .vb page for a delete records script (this also does a deletion confirmation with a javascript popup, this gets called on my front .aspx page with the datagrid), I'm not sure if...
10
by: DaveDiego | last post by:
I've had a user delete one of the client records, I do have a version of the DB with all records intact before the deletion occured. Whats the best approach to getting all the related records in...
5
by: Grant | last post by:
Hi Is there a way to recover deleted records from a table. A mass deletion has occurred and Access has been closed since it happened Louis
7
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For...
3
by: Zorpiedoman | last post by:
Is this true: An existing row in a data table that is deleted still exists in the rows collection, but it is marked as deleted (rowstate = deleted) But If a row that was added to the data...
5
by: wshaer | last post by:
Hi This is the task: and these are my classes: public class Engine{ // Declare the varibles
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.