Reading the XML Schema specification , I don’t see an easy way to mark the attribute as constant (for example, the <foo bar="baz" />attribute barshould always be baz). The only method I have used so far is to use an enumeration with only one element. Is this the preferred method?
source
share