• ryathal@sh.itjust.works
    link
    fedilink
    arrow-up
    37
    arrow-down
    2
    ·
    8 months ago

    XML is ok for complex docs where you have a detailed structure and relationships. JSON is good for simple objects. YAML is good for being something to switch to for the illusion of progress.

      • bob_lemon@feddit.org
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        8 months ago

        I still want someone to explain to me why XML even needs namespaces (which cause about 95% of all issues regarding XML).

        There is a way to separate different XML structures, it’s called files.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        XML is also tricky to parse because people forget it is for documents too. It’s basically like HTML. Mixed content elements are allowed. hey there friend is valid XML. So iterating over elements is trickier than JSON (which is just key value pairs and arrays).