Re: XML Schema quiz on default values

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