The word, used by computer scientists to mean ‘no value,’ has created long-running challenges

  • pHr34kY@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 days ago

    I’ve seen XML parsers that will convert element content from strings to native types by default. So “0” becomes an int, “true” becomes a boolean, and “null” becomes an actual null. I had to take extra steps to keep everything as a string unless explicitly told not to.

    JSON does not have this problem, BTW.

      • Fonzie!@ttrpg.network
        link
        fedilink
        arrow-up
        0
        ·
        1 day ago

        XML can validate itself and there’s the self-documenting WSDL; so while it has more overhead and an ugly syntax it can make for a more stable and earlier to understand API for your API’s consumers.

        • calcopiritus@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          This point is always stated about XML as if it were the most important part of choosing XML.

          But jsonschema exists. It has the same capability.