Flex Build: org.xml.sax.SAXParseException :The entity name must immediately follow the ‘&’ in the entity reference

在过去接近4年的时间里, 很少使用MXML, 几乎都是纯AS, 最近操作了一点点MXML, 譬如:

<s:Button enabled=”isDirty() && canSaveNow()” />

 

在build的时候遇到错误:

org.xml.sax.SAXParseException :The entity name must immediately follow the ‘&’ in the entity reference

Google了一下, XML解析的问题, 解决方法:

&& 替换为:  [&amp;&amp;]

<s:Button enabled=”isDirty() &amp;&amp; canSaveNow()” />

This entry was posted in ActionScript and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>