Uh can't XML have whitespace throughout it just as much as JSON? They seem pretty similar in this respect.
<foo bar="x" baz = "y" />