开发者

EMPTY CDATA in XML

开发者 https://www.devze.com 2022-12-08 16:03 出处:网络
<body><![CDATA[]]></body> or <body></body> Is there a differen开发者_JS百科ce or downside to each? Do I need to do anything while parsing the XML? What do you prefe
<body><![CDATA[]]></body>

or

<body></body>

Is there a differen开发者_JS百科ce or downside to each? Do I need to do anything while parsing the XML? What do you prefer?


As far as the XML parser is concerned there is NO difference. If you wish to force CDATA creation during XSLT output there is an option (cdata-section-elements) that can be used to cause certain elements to output CDATA.

0

精彩评论

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

关注公众号