b)Write a script to
solve following questions (Use "Student.xml" file)
i)Create a DOM Document
object and load this XML file.
ii) Get the output of
this Document to the browser.
iii) Save this [. XML]
document in another format i.e. in [.doc)
Write a XML Script to
print the names of the student present in “Student.xml" file.
Student.xml
<?xml
version="1.0"?>
<?xml-stylesheet
type="text/css"?>
<StudentData>
<student>
<rollno>1</rollno>
<name>archana</name>
<class>MCA</class>
</student>
<student1>
<rollno>2</rollno>
<name>Adhira</name>
<class>BCA</class>
</student1>
Student.php
$dom=new DomDocument();
$dom->load("student.xml");
print
$dom->saveXML()."<br>";
print
$dom->save("newfile.doc");
?>