开发者

XML as messagee content in JSON format

开发者 https://www.devze.com 2023-02-16 12:01 出处:网络
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 nee

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消