OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Simple Question

[ 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 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS