|
[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: elements or attributes
- To: xml-dev@l...
- Subject: RE: elements or attributes
- From: "Bullard, Claude L (Len)" <clbullar@i...>
- Date: Thu, 18 Mar 2004 11:23:19 -0600

|
Ahhh
criminy... we can answer this quick or spend a day explaining why we don't
answer
it. The short answer is you must understand some restrictions on the
use
of
attributes and then you must choose what you want in terms of access to the
values.
1. The two aspects that will usually help one make the decision is
that attributes can't repeat inside
an
element and only elements can contain elements. Attributes are value
pairs. There are other
subtle
aspects that one can learn about at the sites referenced by Mike and
Bob.
2. Verbosity is your choice. XML doesn't care if you
use
<coordinate>1 1 1</coordinate>
or
<coordinate x="1" y="1" z="1" />
or
<coordinate><x>1</x><y>1</y><z>1</z></coordinate>
Then
it is is your choice on your methods for getting and setting
values.
If
this issue is hard, do buy a good book on XML. I recommend XML 1.1 Bible,
Third Edition by
Elliotte Harold, from Wiley. It covers a lot of ground
without too much arcane material.
len
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
 |
| Atom 0.3 |
 |
| |
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|