[
Lists Home |
Date Index |
Thread Index
]
> What was the fundamental motivation for having attributes in an XML
> Document ? Whatever that can be contained in an attribute of
> an element
> can be contained within a sub element.
A lot of people nowadays forget that the M in XML stands for markup.
Markup is a noun derived from a verb: it implies that you start with a
piece of continuous text, and you then annotate it, without changing the
original content.
So the original motivation for the difference between attributes and
child elements is that child elements contain the original data and
attributes contain the annotations.
Michael Kay
|