3 ms·
> when do you use an attribute vs a tag and text element When the schema says so — you even get auto-complete for that in any half-decent editor.
by kaba0 3y ago
> when do you use an attribute vs a tag and text element
When the schema says so — you even get auto-complete for that in any half-decent editor.
- rf15 3y agoI know the history of xml, but just to get back to my original premise: why has a tag (a kind of key in the mind of most readers) multiple "kinds" of values/children in parallel, especially one set that is map-shaped (attributes) while the other is array-shaped (proper children)?