Can someone please explain what is going on and how to get flex to ignore everything but the xml in an PHP file ?
If I have a static xml file with this at the beginning: <?xml version="1.0" encoding="UTF-8" ?> It works fine. But if I save the file as a php file and then try to load it, I get these errors: TypeError: Error #1088: The markup in the document following the root element must be well-formed. at components::ManageXML/::processXML() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() if I take <?xml version="1.0" encoding="UTF-8" ?> out of the file, so it is nothing but XML tags, it works fine as a PHP file. How can I add the <?xml tag and get it to work? similarly, if i have this at the top of the PHP file it works fine: <? $test='foobar'; ?> But if I have this at the top, I get the same errors as above: header(’Content-Type: application/xhtml+xml’); header(’Pragma: no-cache’); header(’Cache-Control: no-cache, must-revalidate’); Why ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

