• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML Schema-- as easy as they say??

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm studying for the IBM XML cert, and am at Schema chapter in my Professional XML 2e Wrox book. I understood DTDs w/o problem now come to what is supposed to be easier Schema and find the whole utterly confusing. I am no brainiac, but have cleared SCJP and SCWCD with little conceptual difficulties. I thought part of the impetus for XML Schema is to be more transparent.
I've been to a couple of the suggested links from previous posts, does anyone else have a favorite link they think provides a readable concise overview to get an aspiring XMLer into this without falling asleep and drooling???
I'm gonna try the W3C non-normative primer now, but given the esoteric nature of the other W3C docs, I ain't holding my breath!!
Maybe this ought to go in the new XML cert discussion, dunno
Thanks and
L8R
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This link on XML Schema is concise and real good.....
http://www.xml.com/pub/a/2000/11/29/schemas/part1.html?page=1
Satish
 
Phil Young
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK -- I got it, the W3C primer is pretty good so is your link Satish.
XML is a funny topic to study, you can't really "mess around" like you can with learning a programming language.
Thanks
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this - take any XML document and try to come up with more than one XML Schema definitions for the document. This will greatly help you understand the subtle differences between all the Schema constructs - this is how I used to fool around
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Ajith that practice helps greatly. There is a lot of stuff to learn regarding schemas, and if your knowledge is only theoretical, it's hard to learn, hard to memorize etc. etc. To guide and inspire your experiments , there is a very good tutorial:
XML Schemas: Best Practice
- it was later included in Wrox's "Professional XML Schemas" book. I found "Global versus Local" part especially enlightening.
 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Phil,
Schema primer is pretty simple to understand. But I guess what the gurus say is true. You need to write some sample schemas to understand it full. If you like XML Bible, here's the link to the chapter of Schemas from the gold edition of XML Bible.
http://www.ibiblio.org/xml/books/biblegold/chapters/ch24.html

Later,
Hema
 
Phil Young
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I think I'm getting the feel for schema now, but it was a bit of a struggle at first!
I have a question, could have started a new thread I guess but here it goes:
I'm looking at implicit restrictions on a string: specifying a length in the instance document will disallow specifying maxLength or minLength.
I thought I'd work backwards and reason how this could have been done in the Schema for Schemas
It is logical that if you specify an exact length, that neither maxLength nor minLength can be relavent. Yet I don't see where this restriction is in the Schema for Schemas
If I were creating a derivedType to do this, I can only think to use groups and complex choice to achieve this kind of logic seemingly built-in for the string type.
Is there an assumed logic in the parser or something here
http://www.w3.org/TR/xmlschema-2/#string
I'm not getting.
___
((. .))
\-/
?
 
Destroy anything that stands in your way. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic