Topic: xml: how do you write it? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 06-05-2002 19:18 |
Maniac (V) Inmate From: Cell 666 |
posted 06-05-2002 20:21
Either way works, I'd use child elements though, like: code: <person sex="female">
quote:
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 06-05-2002 20:22
No hard rule on this but for this kind of thing 99% of the time it would be the first. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 06-05-2002 22:49
interesting. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 06-07-2002 09:55
You can look at it this way: |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 06-23-2002 17:12
Coming to this a little late but if you are producing the XML to feed data to Flash (as I suspect you are) then I believe using attributes greatly speeds up the parsing of the data as it takes Flash longer to work with nodes. |