How to use special characteres like <,>,”, and & in XML in Flex?
Example: i have
xmlList = <permission id="1" label="true"/>;
and
xml = <item id="1" permission="" />
i do this:
xml.@permission = xmlList.toString();
but after all this is the result =
<item id="1" permission="<permission id="1" label="true"/>" />
I need that the special characters remain in your original format. Some help?
Thanks.
Instead of doing
xml.@permission = xmlList.toString()you can doxml.appendChild(xmlList), which results in:You can then access the permission xml element by using
xml.permission