From: Jamis Buck Date: 2004-11-06T00:39:59+09:00 Subject: Re: [QUIZ] GEDCOM Parser (#6) James Edward Gray II wrote: > On Nov 5, 2004, at 8:58 AM, Jim Menard wrote: > >> What determines whether the value should be an attribute or a >> sub-element? It's not level because, for example, sex and name are at >> the same level but name's value is an attribute where sex's is a text >> sub-element. >> >> Is the rule that the value should be an attribute only if the element >> has children? > > > That's how I took it, but maybe we can drag Jamis out to clarify this > for us... > > James Edward Gray II Yup, that was the rule. If a node has children, it's value should be an attribute. Otherwise, it's value should be a sub-element. - Jamis -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis