1 Reply Latest reply on Jun 14, 2010 2:45 PM by laxmidi

    How Do I Set XML Content-type in Flex 3

    laxmidi Level 1

      Hi,

       

      My Flex 3 project makes an ExternalInterface call 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. As I understand it IE requires that the Content-type be set. Is this correct?

       

      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'); for an ExternalInterface call?

       

       

       

      Thank you.

      -Laxmidi