XML as messagee content in JSON format
I am sending data to the browser using JSON format. But when data is a XML, I am getting parser error in the br开发者_如何学JAVAowser. How should I send xml content as data in JSON?
At a guess, you need to pass the xml as a string, escaping any quotes by putting a '\' just before them.
精彩评论