0
我使用的Xerces對XML的驗證,但對於有枚舉變量作爲{Profit & Loss}
「&」中的XML驗證使用Xerces的
當我給值Profit & Loss
,Xerces的是給錯誤:
The entity name must immediately follow the '&' in the entity reference.
<in-ab:TypeOfReport>Profit & Loss</in-ab:TypeOfReport>
如何使用CDATA?請幫助 –
[像這樣](http://en.wikipedia.org/wiki/CDATA)將字符串放在<![CDATA [foo&bar]]> – 2012-08-29 12:29:24
它不工作..再次顯示錯誤。 –