News for hackers. Stuff that matters.
Re:JSON Schema Store by throwawaymaths on Monday August 21, 2023 @05:41AM (#37207247)
Which is better xml design for a pure data payload (not textual content)?

    <foo>something</foo>
Or

    <foo value="something"/>

When you get back with a coherent universal argument, we'll revisit the json vs xml question.
Re:JSON Schema Store by lenkite on Monday August 21, 2023 @06:18AM (#37207481)
Isn't this very easy ? Short, Succinct and a Simple No-frills string ? Put it in the attribute. Big, Long and Arbitrary Length Data ? Put it in the content of the element. Now gimme money.
Re:JSON Schema Store by Devasta on Monday August 21, 2023 @08:51AM (#37208852)
If these are the sort of questions that are tripping you up, just use <foo>something</foo> for everything.