Slip 24 - A) Write a script to create XMLfile named "College.xml” The element details of "College.xm1"are: ----- ---- ---- Display at least 3 colleges Information.

Solution:

<?xml version="1.0"?>

<?xml-stylesheet type="text/css"?>

 <collegeinfo>

 <College>

<Cname>FCC</Cname>

<City>PUNE</City>

<Rank>1</Rank>

</College>

 <College >

<Cname>CCF</Cname>

<City>PUNE</City>

<Rank>2</Rank>

</College>

<College >

<Cname>FC</Cname>

<City>PUNE</City>

<Rank>3</Rank>

 </College>

</collegeinfo>

Post a Comment

0 Comments