how to echo an xml in php?

lzolopp

New Member
I have this function and I need to echo an XML but it doesnt work. what is the problem?\[code\]static function login_xml($ERROR_ID,$SESSION_ID){ echo "<BR>IN LOGINXML<BR>"; echo '<xml version="1.0">'. '<response>log_in</response><parameters><error>'.$ERROR_ID.'</error><session>' .$SESSION_ID.'</session></parameters></xml>'; }\[/code\]I tried with header('Content-type: text/xml'); before echo, that doesnt work either. What can I do?
 
Back
Top