In article <be************ **************@ posting.google. com>,
Russ <18********@sne akemail.com> wrote:
% DFN-CIS NetNews Service <sh******@estat ecomputers.com> wrote in message
% news:<13******* *************** *@estatecompute rs.com>...
% > On 12/02/2004, around 09:10, Russ wrote:
% > R>Are these legal?
% > Yes.
% >
% > R> Are they a good idea?
% > No.
%
% Why not?
The argument usually goes that you should use XML to mark each
individual component of your data, since then your XML parser can give
you each individual component, and you then don't have to parse out the
values you want from your attribute list.
% To my untrained eye, these appear more cluttered to me, without adding
% any additional information.
The argument here goes that it doesn't matter because you would never
look at the XML without some XML-specific tool. It says so right on the
first page of the standard, although not in so many words.
You may balance this against the fact that DTDs and XML Schemas provide
a type (NMTOKENS) which is essentially intended for a white-space
delimited list of numbers, and that XML Schemas goes on to provide
mechanisms for defining your own lists of white-space delimited things,
all of which suggests that somebody who's thought about it a lot thinks
that your approach isn't so bad after all. And your approach surely is
more readable for some purposes.
--
Patrick TJ McPhee
East York Canada
pt**@interlog.c om