Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » comparing XSDTypeDefinitions
comparing XSDTypeDefinitions [message #29511] Mon, 15 September 2003 22:12 Go to next message
Eclipse UserFriend
Originally posted by: cipher8000.yahoo.com

Hi,

Is there any util methods to compare two XSDTypeDefinitions..like below:
int compare(XSDTypeDefinition typeDef1, XSDTypeDefinition typeDef2);

i have two type definition..now i want to see if they are equal or not. i
digged
in the source..it does only name & uri comparsion in XSDNamedComponentImpl.

thanks
-muruga
Re: comparing XSDTypeDefinitions [message #29544 is a reply to message #29511] Mon, 15 September 2003 23:16 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Maruga,

No. Equality isn't defined in the XML Schema spec and one could think of
equality in terms of semantic equivalence of the abstract components or in
terns of structural equivalent of the syntactic components; there is often more
than one syntactic form with the same semantic result...


Muruga Chinnananchi wrote:

> Hi,
>
> Is there any util methods to compare two XSDTypeDefinitions..like below:
> int compare(XSDTypeDefinition typeDef1, XSDTypeDefinition typeDef2);
>
> i have two type definition..now i want to see if they are equal or not. i
> digged
> in the source..it does only name & uri comparsion in XSDNamedComponentImpl.
>
> thanks
> -muruga
Re: comparing XSDTypeDefinitions [message #578174 is a reply to message #29511] Mon, 15 September 2003 23:16 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Maruga,

No. Equality isn't defined in the XML Schema spec and one could think of
equality in terms of semantic equivalence of the abstract components or in
terns of structural equivalent of the syntactic components; there is often more
than one syntactic form with the same semantic result...


Muruga Chinnananchi wrote:

> Hi,
>
> Is there any util methods to compare two XSDTypeDefinitions..like below:
> int compare(XSDTypeDefinition typeDef1, XSDTypeDefinition typeDef2);
>
> i have two type definition..now i want to see if they are equal or not. i
> digged
> in the source..it does only name & uri comparsion in XSDNamedComponentImpl.
>
> thanks
> -muruga


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:comparing XSDTypeDefinitions
Next Topic:Extending the XSD metamodel
Goto Forum:
  


Current Time: Thu Apr 25 13:57:34 GMT 2024

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

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

Back to the top