开发者

how can i print A & B in echo message within Ant script

<target name="three"&开发者_JS百科gt;
<echo message="A & B"/>
</target> 

whenever i m running this code it shows the error like The entity name must immediately follow the '&' in the entity reference. how can i print A & B pls help me out guys


Use &amp; instead of &


Ant scripts must be valid XML, so the ampersand needs XML-escaping:

<target name="three">
<echo message="A &amp; B"/>
</target> 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜