Re: [xml-dev] Why does XML call them "attributes" and not name-value pairs?
Abstraction? It is represented as name-value pair but it could have been a tuple, say a name-value-datatype triple. (Maybe it will be extended one day.) It would still be an attribute.
On Sat, 15 Jan 2022 at 12:42, Roger L Costello <[email protected]> wrote:
Hi Folks,
Someone once told me:
Call it what it is.
Don’t invent some artificial name.
The items in yellow:
<Person name="John Doe" employer="Acme Inc." age="30">…</Person>
are name-value pairs.
Why does XML call them “attributes”?
/Roger
----
Stephen D Green