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

ANN & Call for help: Comparing XML FIles

  • To: xml-dev@l...
  • Subject: ANN & Call for help: Comparing XML FIles
  • From: Oleg Dulin <dulino@o...>
  • Date: Sat, 15 May 2004 16:25:03 -0400
  • Sender: news <news@s...>

comparing xml files
Dear Distinguished Colleagues:

I am working on a little pet project -- writing a tool for comparing
XML files.

I had to use XMLDiff tool (http://www.logilab.org/projects/xmldiff) as
well as the XML comparison tool in XMLSpy on Friday and was
disappointed with not only its performance comparing two relatively
large XML files (over 500K each) but also with the quality of its
output.

I am going to start off with a very simple comparison.

Given two files, file A and file B, I want to know whether all nodes
from A exist in B and confirm that they are in the same positions from
XPath standpoint. I think in 90% of XML comparison cases, especially
the ones involving XML schemas, these are the ones that matter.

So, here is what I have so far:

I've written an XSL transform (genComparator.xslt) that when applied
to the master file generates another XSL transform (comparator.xslt)
that confirms the existance and positions of nodes from the master
file in the copy file. It basically checks whether the files are
equivalent from the XPath standpoint. Even if the "copy" has more
nodes than in the input file, it is irrelevant as long as the XPaths
are still the same (which means that the same programmatic tools can
be used).

There are more details on my blog at
http://www.olegdulin.com/index.php?cat=8

I need some help with it, so any input is greatly appreciated,
especially with regard to this:  I don't know how to declare all
namespaces used in the master file in the 2nd order XSL. The problem
is that "xmlns:" attributes are not recognized using XPath and I can't
copy them over. Any thoughts are greatly appreciated.

Kind regards,
Oleg


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.