XML : Text-friendly file format for structured data

I'm looking for a file format that lets me encode structured data like dictionaries and arrays, but also allows me to easily edit text blocks, including line breaks.

Candidates so far:

  • xml: (+) good for text editing and structured data, (-) ignores line breaks, closing tags is cumbersome
  • html: (+) has tags for line breaks, (-) no structured data
  • json: (+) good for structured data, (-) bad for editing multiline text
  • yaml: (+) good for structured data, (-) bad for editing multiline text if text contains special characters like colon etc

My favorite so far: xml with self-defined tags for line breaks. Better ideas?

No comments:

Post a Comment