Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XML Schema Equivalence
XML Schema Equivalence [message #23675] Tue, 17 June 2003 15:08 Go to next message
Eclipse UserFriend
Originally posted by: pandey.dbai.tuwien.ac.at

Hi,
can someone help me here:
I have two schemas from two different sources.
I want to know if they are equal or not ?

How can I do that.
Kindly give solution for anyway you have.
I shall be thankful.
-Omkant
@DBAI, TU Wien, Austria.
Re: XML Schema Equivalence [message #23759 is a reply to message #23675] Wed, 18 June 2003 10:39 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Omkant,

It all depends on how you define equivalence. You could compare that
the two schema files have the same sequence of bytes. You could check
if the two DOMs are equal. You could check if the two TreeIterators
(walking the two black diamond containment trees) each produce a
sequence of equivalent objects with equivalent attributes and cross
references. Or you could define some sort of semantic equivalence which
might ignore top-level declaration order and do match-by-name. The XSD
model doesn't provide any of these directly, but can be used to
implement them...


Omkant wrote:

> Hi,
> can someone help me here:
> I have two schemas from two different sources.
> I want to know if they are equal or not ?
>
> How can I do that.
> Kindly give solution for anyway you have.
> I shall be thankful.
> -Omkant
> @DBAI, TU Wien, Austria.
Re: XML Schema Equivalence [message #573119 is a reply to message #23675] Wed, 18 June 2003 10:39 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Omkant,

It all depends on how you define equivalence. You could compare that
the two schema files have the same sequence of bytes. You could check
if the two DOMs are equal. You could check if the two TreeIterators
(walking the two black diamond containment trees) each produce a
sequence of equivalent objects with equivalent attributes and cross
references. Or you could define some sort of semantic equivalence which
might ignore top-level declaration order and do match-by-name. The XSD
model doesn't provide any of these directly, but can be used to
implement them...


Omkant wrote:

> Hi,
> can someone help me here:
> I have two schemas from two different sources.
> I want to know if they are equal or not ?
>
> How can I do that.
> Kindly give solution for anyway you have.
> I shall be thankful.
> -Omkant
> @DBAI, TU Wien, Austria.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XML Schema Equivalence
Next Topic:Old Xerces Version
Goto Forum:
  


Current Time: Wed Apr 24 16:03:16 GMT 2024

Powered by FUDForum. Page generated in 0.03206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top