[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Regd 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. Are they any such algorithms to read the contents of XML files. With Regards, BeQIK Be Better Be Bosch
-- -- ---------------------------------------------------
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|