On Sun, 2002-09-08 at 11:28, Nicola Ken Barozzi wrote: <snip/> > The golden rule is that elements are for content and attributes for > meta-content.
+1 <snippy-di-snip/> > Now, given that xml property files are all about meta-content, I > personally really like the all-attribute approach, using elements for > multiplicity and containment, as in the above example. +1 > I would also use the element contents to describe what the element is > about; this makes it possible to have comments everywhere, and a user > can read the descriptor as a document; it's also easy to make > documentation out of it. <snip example/> > This is generally known as "literal programming". +1. >From the perspective of an XML file author (rather than that of a parser builder), this is a really good idea. From the perspective of a parser builder (my SAX knowledge is rusty though), this is also good; it is easier than parsing <!-- --> or a multitude of extra attributes. cheers, Leo -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
