W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2012

Re: XML Schema quiz on default values

From: Pete Cordell <petexmldev@codalogic.com>
Date: Fri, 24 Aug 2012 18:03:37 +0100
Message-ID: <D6A6749F1C074AFEA7CD3731C473C4C1@codalogic>
To: "Daniel Dui" <daniel.dui@gmail.com>, "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>
Cc: "Costello, Roger L." <costello@mitre.org>, <xmlschema-dev@w3.org>
Original Message From: "Daniel Dui"

> My experience is that a user that sees the default feature in XML schema
> expects that the default value is the value that an optional element
> "takes" when it's not included in the instance document.
> You might think it's naive, but that's the reality for many C++/Java/C#
> developers who need to deal with XML from time to time. It's not, I hope,
> for XML specialists.

I agree.  And to make things even more confusing, that's the behaviour for 
attributes I believe.

Pete Cordell
Codalogic Ltd
Twitter: http://twitter.com/petecordell
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info
Received on Friday, 24 August 2012 17:04:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:20 UTC