Re:Matrix 1.0 – Are We Ready Yet?
by JeremyBanks on Monday March 18, 2019 @08:34AM
(#19420513)
Even if you don't parse it yourself, XMLs data model is usually more of a chore to consume.
Re:Matrix 1.0 – Are We Ready Yet?
by tannhaeuser on Monday March 18, 2019 @08:59AM
(#19420644)
XML/SGML is highly appropriate for representing rich text, though, which is the purpose of chat apps/logs. Using JSON you'd have to invent ad-hoc markup on top of JSON, loosing any advantage it may have.
Re:Matrix 1.0 – Are We Ready Yet?
by JeremyBanks on Monday March 18, 2019 @09:44AM
(#19420907)
Nobody uses rich text formatting, and even if they did, the message body is only a small fraction of the total protocol content.
> Using JSON you'd have to invent ad-hoc markup on top of JSON
That's basically a description of ActivityPub that wraps HTML in JSON!
Will activitypub let me do:
<body> markdown text </body>
And ship some js to convert to html?
You're supposed to use an off-the-shelf XML/JSON parser, not write it yourself.