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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Simple Question

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: Simple Question
  • From: Ramkumar Menon <ram.menon@oracle.com>
  • Date: Tue, 11 Nov 2003 10:31:54 +0530
  • User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01

I appologize if this is the wrong place to send this question.

My question is:

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. If I model an XML Document as a 
Java object, would I need to distinguish between the elements and 
attributes ? Moreover, why was it decided that attributes can only be of 
a simple type ?

thanks,
Ram






 

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

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