Each element in an all group may occur once or not at all; no other multiplicity is allowed. In other words, minOccurs is always "0" and maxOccurs is always "1".
Below is the part of valid schema
And below is a xml document instance to the above schema
Now, the book says the below about the xml doc instance
In Listing 3-11 the name, street, and zip elements must be present in the instance document, but the city and state elements may be absent.
My question is: When they say minOccurs is always "0" and maxOccurs is always "1", how can they say that in the xml doc the name, street, and zip elements must be present in the instance document?
"I may not have gone where I intended to go, but I think I have ended up where I needed to be"<br /> <br />"He felt that his whole life was some kind of dream and he sometimes wondered whose it was and whether they were enjoying it"<br /> <br />--by Douglas Adams<br /> <br />[SCJP - 96%, SCWCD - 88%, SCBCD - May 2008]