[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Regd XML algorithms !!


xml algorithms
Title: Re: 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@i...
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@d...      http://www.deltaxml.com

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.