XML中,属性值内的特殊字符需要转义:
- '<' 应转义为 <
- '>' 应转义为 >
- '&' 应转义为 &
因此下面的>=, <=应该转义:
data3.AppendLine(@"<Formula AssignTo=""挡料气缸动点"" Comment="""" Formula=""if Parameter_1>=p167-1 then true else false""/>");
data3.AppendLine(@"<Formula AssignTo=""挡料气缸原点"" Comment="""" Formula=""if Parameter_1<=p168+1 then true else false""/>");
本文出自勇哥的网站《少有人走的路》wwww.skcircle.com,转载请注明出处!讨论可扫码加群:

本帖最后由 勇哥,很想停止 于 2025-09-09 18:24:43 编辑 
