Re: XML Schema quiz on default values
"Pete Cordell" <[email protected]> Fri, 24 Aug 2012 18:03:37 +0100
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <D6A6749F1C074AFEA7CD3731C473C4C1@codalogic> |
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