值如何在此添加CDATA到ViolationInfo以下XMLCDATA在XML
<Violations ViolationNo="1" ViolationCD="10G" ConditionCode="" SectionCd="NYCHC 81.35" severity="0" ViolationInfo="Cold holding equipment not properly maintained in that two door reach-in refrigerator in kitchen observed holding potentially hazardous milk and operating at an internal temperature of 48°F.. All potentially hazardous foods were discarded as per violation 2G" Point="5" Occurence="0" ViolationDate="2/17/2010 7:58:00 AM"></Violations>
当我试图如图所示,下面放我收到一个错误说不能有<在价值
<![CDATA[Facility conditions conducive to the existence of pest life in that several holes, approximately 2-3 inches in diameter noted in ceiling throughout rear food storage area and throughout basement.]]>
CDATA不会在节点属性中工作,但在节点值中完全可以接受。 – 2018-02-09 14:49:16