TIP: Click on subject to list as thread! ANSI
echo: xml.dbms
to: DALE ROSS
from: CHRIS CRANFORD
date: 2003-01-02 22:31:04
subject: Re: XML Nodelist Proposal

 wrote in message news:1041272569.716.0{at}tkdsoftware.com...
> I am hoping that Chris Cranford will pop up in here. He is supposed to be
> VERY GOOD with XML. I think he could guide us on that. My first thought
are
> that if a child doesn't have any attributes then why not make it an
> attribute of the "parent".

See below...

>  >> number=
>
>  s> Definately number, it identifies the node.  It doesn't matter for the
>  s> rest, except for readability (IMO children are more readable than
>  s> attributes).
>
> I agree with this.

Attribute Example:    
Element Example:      

Attributes are typically used to pass data (e.g. to XML parser) that is
irrelevant for users, but canbe used to manipulate the data element.

People typically try to "avoid" using attributes because:

 1. They cannot contain multiple values and are less flexible.
 2. Attributes are not expandable (for future changes)
 3. Attributes cannot describe structures (like child elements can)
 4. Attribute values can not be tested against DTD.

The idea behind XML was to provide a means to describe a document's
"structure" and be able to validate an XML against a DTD or XML Schema
to determine if the format is valid.

Hope this helps.
Chris



--- Mail-ennium/32 v1.01.301.9/#01-0001
* Origin: Thanks for using Mail-ennium/32 (1:379/1200.0)
SEEN-BY: 633/267 270
@PATH: 379/1200 1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.