Future standard GUI library
Roy Smith
roy at panix.com
Mon May 27 19:10:35 EDT 2013
In article <mailman.2265.1369693294.3114.python-list at python.org>,
Chris Angelico <rosuav at gmail.com> wrote:
> I'll use XML when I have to, but if I'm inventing my own protocol,
> nope. There are just too many quirks with it. How do you represent an
> empty string named Foo?
>
> <Foo></Foo>
>
> or equivalently
>
> <Foo/>
>
> How do you represent an empty list named Foo? The same way. How do you
> represent an empty dict/mapping named Foo? Lemme look up my
> documentation... ah, the same way. Does this seem right to
> you?</JubalEarly>
XML doesn't represent strings, or lists, or dicts. It represents trees
of nodes with labels. If you wish to invent some richer semantic
meaning to impose on those nodes, that's up to you.
JSON isn't better or worse than XML. They solve different problems.
More information about the Python-list
mailing list