11.
Write
PHP script to create a CD catalog using XML file.
Xml file
:
<?xml
version='1.0' encoding='UTF-8' ?>
<CD>
<cd type='music'>
<name>silent_songs</name>
<launch-date>5-6-2014</launch-date>
<composer>A-R-Rehman</composer>
</cd>
<cd type='music'>
<name>Hip-Hop</name>
<launch-date>4-8-2011</launch-date>
<composer>Yo-Yo-Honey
singh</composer>
</cd>
<cd type='music'>
<name>love track</name>
<launch-date>6-9-2000</launch-date>
<composer>Arjit Singh</composer>
</cd>
</CD>
Php file :
<?php
$xml=simplexml_load_file('slip_11_Q3.xml');
var_dump($xml);
?>
Xml file :
ReplyDeletesilent_songs
5-6-2014
A-R-Rehman
Hip-Hop
4-8-2011
Yo-Yo-Honey singh
love track
6-9-2000
Arjit Singh
Php file :