News for hackers. Stuff that matters.
Re:Ten predictions (2004) by mattmanser on Saturday February 16, 2013 @06:35AM (#5231188)

    {'users': [{'name': 'joe', 'age': '12' }, {'name': 'bob', 'age': '23'}]}
    <users><user name='joe' age='12' /><user name='bob' age='23' /></users>
Re:Ten predictions (2004) by ramses0 on Tuesday February 19, 2013 @03:50PM (#5246960)
Yeah, that's cool and all, but I avoided using XML with attributes because attributes can't / don't nest.

{ name: 'joe', dob: { m: 1, d: 2, y: 1934 } }

<user name='joe' dob='...???...'>

<user><name>joe</name><dob><m>1</m><d>2</d><y>1934</y></dob></user>

I actually wasn't trying to make the "XML is bigger" joke because that isn't what's important to me. Structurally XML is harder to use.

Re:Ten predictions (2004) by FlyingAvatar on Sunday February 17, 2013 @09:35AM (#5235295)
Not to be pedantic, but:

    {users: [{name: 'joe', age: 12}, {name: 'bob', age: 23}]}
    <users><user name='joe' age='12' /><user name='bob' age='23' /></users>