As the question states, I get XML parser failure: Unterminated attribute
whenever I try to use the angle brack开发者_JS百科ets as part of a value of one of my attributes. For example all cause XML errors:
<menuitem label="<em>"/>
<menuitem label="<em>"/>
<menuitem label="<em>"/>
Is there a way to include angle brackets in these menu items when using it with a FlexNativeMenu in Flex 4?
I'd try setting the label in ActionScript:
menuItem.label = '<em>';
If you're intent on doing this in MXML; I would try an approach like this, using the cdata declaration to escape things:
<Menuitem>
<label><![CDATA[<em>]]></label>
</Menuitem>
精彩评论