开发者

Embed HTML in XML

I'm creating a news app for android where news data transfered to clients using xml. The problem is how can i embed news content inside xml ? News content contains html tag. Here is part of my x开发者_开发知识库ml data

<title>xxx</title>
<date>xx</date>
<content>html here</content>


You will have to use the CDATA-Tag:

http://www.w3schools.com/xml/xml_cdata.asp

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜