top | item 47039397

(no title)

stickfigure | 13 days ago

XML is much better than JSON for document-oriented data like messaging and web pages. Use the right tool for the job.

discuss

order

Gigachad|13 days ago

IM messages aren’t really documents. They are text with some very minimal formatting that could be expressed with markdown. Any media attached isn’t embedded in the document, it’s attached externally / rendered at the bottom.

The only example I can think that messages are expressed as documents is Microsoft Teams. And it’s as much an example of what not to do as anything.

SahAssar|13 days ago

IM messages seem to be documents just as much as email or many things you'd normally call documents. A reasonable definition IMO would be:

    A self-contained rich formatted text file/package that optionally contains attachments or media.

idle_zealot|13 days ago

Eh, XML is a machine-readable generic markup language. Why would you prefer using a less powerful format like markdown in a context like message representation? XML with inline tags seems the perfect fit.