[
Lists Home |
Date Index |
Thread Index
]
Title: Re: [xml-dev] Regd XML algorithms
!!
Radhakrishna,
There are quite a few different approaches to this problem. Some
comparators treat the XML as text and use a 'diff' type algorithm on
the text. The problem with this is that it does not take account of
whitespace, namespace prefixes etc and you do not get a well-formed
result.
XML-aware comparators will treat the XML as real XML and process
the namespaces and prefixes properly. They should also treat the XML
as a tree structure and match this across the two files
recursively.
An important thing to consider is why you need the changes, what
will you do with them? If you just need to validate that two files are
the same then canonical XML may help (as suggested in another reply).
DeltaXML provides the differences as an XML file for further
processing, and reads all the content of the files using standard XML
parsers. There is quite a lot of info and papers on our web site if
you care to look [1], and you can test it out also.
Best regards,
Robin
[1] http://www.deltaxml.com
At 9:06 am +0530 23/10/03, Radhakrishna Murthy (RBIN/EEC1)
wrote:
hi
everyone,
My
name is Radhakrishna.
i need the information on different
algorithms availble to get diffrence of contents between 2 XML
files.
I visited lot of sites.But i
couldn't able to get the generic algorithm.Every organizatoin has
builded it's own algorithms.
Are
they any such algorithms to read the contents of XML files.
With Regards,
RadhaKrishnaMurthy
Cherukuri
Software Engineer (EEC1)
Robert Bosch India Ltd
Internal phone : 4525
Direct Line :
+91-80-5119 4525
Mobile : +91-98455
42953
email : radhakrishna.murthy@in.bosch.com
BeQIK
Be Better Be
Bosch
123 , Industrial Layout , Hosur Road
, Koramangla , Bangalore - 560095
-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>,
an
initiative of OASIS <http://www.oasis-open.org>
The list archives are at http://lists.xml.org/archives/xml-dev/
To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>
--
-- ---------------------------------------------------
Robin La Fontaine,
DeltaXML: "Change control for XML, in XML"
Email: robin@deltaxml.com
http://www.deltaxml.com
|