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

Comparison of Xml documents

  • To: xml-dev@l...
  • Subject: Comparison of Xml documents
  • From: GARNIER Pierre <pgarnier@m...>
  • Date: Thu, 20 Nov 2003 10:37:04 +0100

comparison of xml documents
Title: Message
Hi all,
 
I wanted to submit you a question.
Could it be a good idea that schemas (in general) give informations in order to compare Xml documents?
 
Precisely, today, it's not possible to compare nicely two documents knowing that they are validated by the same schema.
 
For example :
Schemas give ordering informations on different tags, I can specify that tags <b> are before tags <c> in tag <a>.
Eventually I can specify that tags <e> are ordered by the "att1" attribute of tag <e> in tags <d>.
What if I want to compare the to following documents :
1)
<Winners>
  <Player name="Bob"/>
  <Player name="Wil"/>
</Winners>
2)
<Winners>
  <Player name="Wil"/>
  <Player name="Bob"/>
</Winners>
Are they identical or different?
I would want to have the possibility to say : in tag <Winners> the tags <Player> are ordered (so the two documents are not the same), or the tags <Player> are unordered (so the two documents are the same).
 
Should those informations (comparison infos) be in a "comparison" schema rather than merged in the validating schema?
Anyone knows about such a "comparison" schema standard spec existing?
 
Thanks,
Pierre

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.