[swfmill] Error with compiling textfield with "><" characters

Steve Webster spjwebster at gmail.com
Wed Jan 24 06:57:05 EST 2007


Hi Roxlu,

> I tried to compile this line:
> <font id="fontDeliciousRoman" import="assets/Delicious-Roman.ttf" glyphs="<"/>
>
> Which gives me:
>
> portfolio_slider.xml:16: parser error : Couldn't find end of Start Tag font line 16
>
> Does someone knows about this?

Yes. In an XML document if you want to input one of the big 5
characters (<,>,&,",') in an attribute or text node you need to encode
it to its entity. So instead of < use &lt;

<font id="fontDeliciousRoman" import="assets/Delicious-Roman.ttf"
glyphs="&lt;"/>

Enjoy!

Steve

PS. You can't use a CDATA section in an attribute value.

-- 
Steve Webster
http://dynamicflash.com



More information about the swfmill mailing list