Click to See Complete Forum and Search --> : Php generate Xml problem!


turb
06-16-2004, 10:43 AM
Hi!

here's my problem:

$xml ="<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n";

I'm using EditPlus and my problem is that the ending tag "?>" of the xml declaration close my first tag "<?" of my php page.

So all the code after that line seem to be not understand!

Can someone light me!

Naemo
06-16-2004, 12:31 PM
hi

im fairly new to php but could you just do this:



//replace:
$xml ="<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n";

$xml ="<?xml version=\"1.0\" encoding=\"UTF-8\" ?".">\r\n";



i think it will work??

turb
06-16-2004, 12:40 PM
You're genius Naemo... that solve my problem!

Naemo
06-16-2004, 01:05 PM
glad to have helped :)