Other way around works too (I gave an example above), it's just not pretty in either direction.
XML makes sense for open-ended, human-written things like documents or apps. It doesn't work so well for APIs and other machine-read/written things where you'd normally use JSON.
In all seriousness, everything in JSON can be expressed as XML; but not necessarily the other way around.