值如何在此添加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