[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Tentative Conclusion on XML Design Question
I prefer using XML namespace qualified names for extensible enumerated
sets of values, much more than using either attributes with string values
or content.
So I much prefer <secret> to <Data Name="SECRET"> because (presumably)
"secret" is one of an enumerated set.
One "test" is that if you take a fragment of the resulting XML and
translate it (from English, presumably) to another language, words
in attributes and content would translate, but namespace-qualified
names would not. (Of course, base64-encoded data in element values
don't count.)
Larry