Lists Home |
Date Index |
- To: firstname.lastname@example.org
- Subject: Simple Question
- From: Ramkumar Menon <email@example.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 ?