[
Lists Home |
Date Index |
Thread Index
]
PA wrote:
>
> On Dec 11, 2004, at 23:07, Tim Bray wrote:
>
>> If you have a Macintosh, the disks are just stuffed with "plists",
>> which are an XML expression of a map, sort of;
>
>
> I'm familiar with property lists:
>
> http://www.javalobby.org/forums/thread.jspa?threadID=16260&tstart=0
>
>> the XML syntax is rather horrible:
>
>
> Ok... Why would you qualify it as "horrible" though? How would you
> model it instead? I have to confess that to me it all looks like a
> blur of angle brackets :o)
>
> Here is how a "old style" property list look like:
>
> { user = wshakesp; birth = 1564; death = 1616; }
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/
> PropertyLists/Concepts/OldStylePListsConcept.html
>
> Here is the equivalent XML version:
>
> <dict>
> <key>user</key>
> <string>wshakesp</string>
> <key>birth</key>
> <integer>1564</integer>
> <key>death</key>
> <integer>1616</integer>
> </dict>
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/
> PropertyLists/Concepts/XMLPListsConcept.html
>
> How would you make the XML format to represent such a dictionary
> structure less "horrible"?
xml tags are specific start/end matches. {} are not. xml has utf-nn as a
character set. xml can be easily parsed for syntax/symantic errors. etc
>
> Cheers,
>
> PA.
>
>
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
>
begin:vcard
fn:Rick Marshall
n:Marshall;Rick
email;internet:rjm@zenucom.com
tel;cell:+61 411 287 530
x-mozilla-html:TRUE
version:2.1
end:vcard
|