Hi all. i try to output xml data using the following php code but
when i run the php script i don't get the xml output in correct format.
PHP Code:<?
echo" <playing>\n";
echo" <artist>Kambiz</artist> \n";
echo" <song>Shookolat</song> \n";
echo" <image>http://www.somesite.com/song_images/kambiz.jpg</image> \n";
echo" <rating>2.44444</rating> \n";
echo" <songid>3003</songid> \n";
echo" </playing>\n";
?>
I want the xml to be outputed as shown in this pic:
correct output format:
http://allyoucanupload.webshots.com/...91865848610011Code:- <playing> <artist>Kambiz</artist> <song>Shookolat</song> <image>http://www.somesite.com/static/artists/shakila.jpg</image> <rating>2.44444</rating> <songid>3003</songid> </playing>
Not correct xml format:
http://aycu13.webshots.com/image/274...6588372_rs.jpgCode:Kambiz Shookolat http://www.somesite.com/song_images/kambiz.jpg 2.44444 3003
could any one tell me how to output the xml data in the following format.Thanks




Reply With Quote