aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML Schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Schema" Watch "XML Schema" New topic
Author

XML Schema

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

There are several XML schema(RELAX NG) in existence apart from W3C XML schema. I dont understand understand , why do we need these schemas?
Can any one tell me. Thanks.


Groovy
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I believe the different schema languages (such as Relax NG) are trying to "fix" some deficiencies in the W3C XML Schema, i.e. make it easier to specify schemas for XML documents.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Lasse,
My opinion- The deficines in W3C schema language needs to be fixed rather than creating new schema languages. This will lead to confusion and organization will start to use some schema language which may not work with another schema language(I am not sure whether I am right here). What is opinion?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Yes, it would be nice to have a single, perfect schema definition language. However, that is rarely possible in the real world. Besides, if there wasn't competing standards, would it really be better for us in the long run?
Elliotte Rusty Harold
author
Ranch Hand

Joined: Feb 25, 2004
Posts: 91
This is addressed in depth in item 24 of Effective XML, "Choose the right schema language for the job." Bottom line: no one schema language can solve all needs any more than one programming language can. Different languages have different strengths and weaknesses. A diverse collection of schema languages is a healthy development for XML.


Elliotte Rusty Harold<br />Author of <a href="http://cafe.elharo.com/web/refactoring-html/" target="_blank" rel="nofollow">Refactoring HTML</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML Schema