Re: XML Schema quiz on default values

Michael Kay <[email protected]> Fri, 24 Aug 2012 00:02:04 +0100
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
Answer: the value of Title is the empty string, not the default value. 
The reason is that the empty string is a valid value of the string data 
type. If you want Title to have the default value then you must 
explicitly enter the default value: <Title>Hello World</Title>

WRONG. The default applies when the element is empty, not when it is 
invalid.

Michael Kay
Saxonica