All of the things you mentioned serve a purpose that, at scale, would have to be replicated in some ad-hoc manner in JSON.
Yes XML is more expensive to parse, but so is all the extra stuff you have to do to get around the various limitations of JSON, which could have been done cheaply by an optimized XML parser.