PDA

View Full Version : Finding out changes in an XML document


user77
09-07-2009, 12:08 PM
Hi All,

I am not completely sure whether I should be posting this question here. If not could someone please point me in the right direction ?

What I want to do is to detect changes in an XML document. The user make some changes in an XML doc and upload it. On the server side i need to find out what changes have been made and in which tags(preferably using php).

eg. initiial tag
<color name='red' />

is changed to
<color name='green' />

I am not sure how I should be going around this question. It would be great if someone could help me out with this.

Thanks in Advance,

Alex Vincent
09-08-2009, 03:40 AM
If the XML is inside a webpage, DOM mutation listeners should do the trick:
http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-eventgroupings-mutationevents

GlobolStaff
09-10-2009, 12:01 PM
If the XML is inside a webpage, DOM mutation listeners should do the trick:
http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-eventgroupings-mutationevents

thanks for your recommend:p
website update (http://****************/)