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

From
Ihe Onwuka <>
To
Roger L Costello <>
Date
2022-01-15T13:01:22Z
ID
<>
Thread
Re: [xml-dev] Why does XML call them "attributes" and not name-value pairs?
at·trib·ute
See definitions in:
All
Computing
Grammar
Statistics
noun
/ˈatrəˌbyo͞ot/
  1. 2.
    COMPUTING
    a piece of information which determines the properties of a field or tag in a database or a string of characters in a display.

On Sat, Jan 15, 2022 at 7:42 AM 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