This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 8898

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: 8898

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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Schema
 
Similar Threads
Watsh Rajneesh notes mistake???
Howto validate xml schema?
Complex Type creation
Passed with 90%
How to validate an XML schema i.e. Validate an XSD file