What about taking simply a JSON list of tags as data? 
[<xml tag1>,<xml ]ag2>]
It would not matter whether the tags are sent in pretty format ("with newlines and tabs") or not.