The entity name must immediately follow the ‘&’ in the entity reference
If you’ve ever written code in a binding tag and gotten a special character error try html-encoding the character like you’d do if you were encoding regular text:
Error:
<mx:TextInput text="{(_feed.url && !_feed.isTemporary)?_feed.url:'Save Feed to generate URL'}" />
Works:
<mx:TextInput text="{(_feed.url && !_feed.isTemporary)?_feed.url:'Save Feed to generate URL'}" />
It makes sense after the fact but before you actually do it, it just looks odd to html-encode your actionscript.
Thanks for this :)
It was odd indeed.
To fix this keep the code external and wrap it in:
<![CDATA[
]]>
Thanks for the tip. I really didn’t think it will work but it did
Worked like a charm.. thanks..
zupper!!!
Thanks! It also works with binding…
enabled=”{Boolean(someValue) && Boolean(someOtherVal)}”
Bugger – code got converted – replace the &’s with the & amp; ‘s
Thanks. You save me.
Thanks. This saved me a bunch of hacking around.
Thank you so much for this tip:)
it really save me time to try the other ways around.
thanks, this worked. Will try out with the CDATA wrap too.
Thank you so much. How did you ever figure that out??!!
you saved my life
Yay thanks ! I really needed this silly thing was driving me nuts ! TANK you :D
another thank from Germany!
G8 , u r my god
Thanks for your help!!
Thanks so much… and Kevin for the binding tip… So helpful!
thank you very much! it bothers me long time!!!
haha…wow thanks so much !! was driving me NUTS !!
Thanks a lot for this – very helpful!
Thanks a ton.
It was very helpful
Thnks , Very HelpFul !
Dear Sir,
I am using NetBeans 6.5.
Both, javascript statements,
event.keyCode > 47) && (event.keyCode 47) & & (event.keyCode < 58))
throws error. Please guide me.
Dear Sir,
I am using NetBeans 6.5.
Both, javascript statements,
if((event.keyCode > 47) && (event.keyCode 47) & & (event.keyCode < 58))
throw error. Please guide me.
That really helped, thanks!
Thanks for this, both techniques work. I used the CDATA wrap as I realised this had been left out of a tag when auto-copying a mxml skin for custom skinning (in my case I was copying the ComboBoxButtonSkin). One to watch out for, could be a due to out-of-date SDKs
use < for
&& for &&
DITTO!!!!!
Excellent, cheers!!!
I experienced this error in Carrot2, is a generic error Java,Flash,etc. when we don’t write properly xml files. My xml included special characters, to fix it i added xmlentities at my script.
Ah, thanks for this. Saved me some head-scratching :)
hey! it worked fine! thank u so much
Hehe, it actually works:)
Thanks.
Big LOL to Adobe;P
O my gosh, thank you sooo much!!!
nice…. it worked. thanks
Thank you very much! It worked for my SAX parser.
Saved me from spending even more time on this stupid error :)
Thanks a lot
Thanks a lot!!!
i got error
Your template could not be parsed as it is not well-formed. Please make sure that all XML elements are closed properly.
XML error message: The entity name must immediately follow the ‘&’ in the entity reference.
bellow tags i add in to my site please look in to my meta tags & find out problem. please make me fair copy of this content
(function() { var a=window;function c(b){this.t={};this.tick=function(b,i,d){d=void 0!=d?d:(new Date).getTime();this.t[b]=[d,i]};this.tick(“start”,null,b)}var f=new c;a.jstiming={Timer:c,load:f};try{var g=null;a.chrome&&a.chrome.csi&&(g=Math.floor(a.chrome.csi().pageT));null==g&&a.gtbExternal&&(g=a.gtbExternal.pageT());null==g&&a.external&&(g=a.external.pageT);g&&(a.jstiming.pt=g)}catch(h){};a.tickAboveFold=function(b){var e=0;if(b.offsetParent){do e+=b.offsetTop;while(b=b.offsetParent)}b=e;750>=b&&a.jstiming.load.tick(“aft”)};var j=!1;function k(){j||(j=!0,a.jstiming.load.tick(“firstScrollTime”))}a.addEventListener?a.addEventListener(“scroll”,k,!1):a.attachEvent(“onscroll”,k);
})();
(function() { var a=window;function c(b){this.t={};this.tick=function(b,i,d){d=void 0!=d?d:(new Date).getTime();this.t[b]=[d,i]};this.tick(“start”,null,b)}var f=new c;a.jstiming={Timer:c,load:f};try{var g=null;a.chrome&&a.chrome.csi&&(g=Math.floor(a.chrome.csi().pageT));null==g&&a.gtbExternal&&(g=a.gtbExternal.pageT());null==g&&a.external&&(g=a.external.pageT);g&&(a.jstiming.pt=g)}catch(h){};a.tickAboveFold=function(b){var e=0;if(b.offsetParent){do e+=b.offsetTop;while(b=b.offsetParent)}b=e;750>=b&&a.jstiming.load.tick(“aft”)};var j=!1;function k(){j||(j=!0,a.jstiming.load.tick(“firstScrollTime”))}a.addEventListener?a.addEventListener(“scroll”,k,!1):a.attachEvent(“onscroll”,k);
})();
Thanks that really helped
@Satellaview
Yes this is most suitable way as it makes clear almost all the sp chars.
Thanks!
Thanks