Send XML to flash with javascript, parse error only in IE

spampw

New Member
I'm passing a piece of HTML from my page to a flash movie, where i want to parse it as HTML.i use jQuery to get the data from the page;\[code\]var htmlForFlash = escape($("#prodlinksWrap").html());\[/code\]the HMTL i'm passing looks somewhat like this:\[code\] <div id="prodlinks" class="noscript"> <a href="http://stackoverflow.com/products/Quadrant.aspx">Quadrant</a> <a href="http://stackoverflow.com/products/CampFire.aspx">CampFire</a> </div>\[/code\]This works fine in FireFox, Chrome and Safari, but IE throws an error:\[code\]TypeError: Error #1090: XML parser failure: element is malformed.\[/code\]on this line:\[code\]var myXML : XML = new XML(data);\[/code\]The error goes away when I delete all attributes in my xml, but offcourse that's not what i want. I already tried changing the quotes, adding a \[code\]<?xml ..>\[/code\] tag, but no result so far.Any help would be appreciated!
 
Back
Top