Re: [xml-dev] Why does XML call them "attributes" and not name-value pairs?

From
Stephen D Green <>
To
Roger L Costello <>
Date
2022-01-15T13:45:31Z
ID
<CAA0AChXz_4Wcak+8z47Z=L8hC00ZMoSXSpbhuegwFjPZ=>
Thread
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