How Do I Set XML Content-Type in Flex 3?

Posted by Laxmidi on Stack Overflow See other posts from Stack Overflow or by Laxmidi
Published on 2010-06-11T15:39:28Z Indexed on 2010/06/11 15:43 UTC
Read the original article Hit count: 233

Filed under:
|
|

Hi,

I've got a Flex 3 project. Flex makes an ExternalCall to some Javascript. The Javascript is then turned into XML.

But, my xml isn't parsing in IE. It works in all other browsers. I think that the problem is that I haven't set the XML's content-type and IE doesn't like that. So my code looks like:

myReturn =  '<myXMLReturn>' + myReturn + '</myXMLReturn>';

myReturn = '<?xml version="1.0" encoding="UTF-8"?>' + myReturn;

xmlReturn = new XML(myReturn);

How would I set: header('Content-type: application/xml'); in Actionscript?

As I understand it IE requires that the Content-type be set. Is this correct?

Thank you.

-Laxmidi

© Stack Overflow or respective owner

Related posts about Xml

Related posts about flex