30. Write a script
to create “cricket.xml” file with multiple elements as given below
<Cricket team>
<Country
= India>
<Player
Name >-------- <Player Name >
<Wickets>---------
</Wickets>
<Runs>--------</Runs>
</Country>
</Cricket team>
Also add country = “England” and its
elements.
XML file :
<?xml
version='1.0' encoding='UTF-8' ?>
<CricketTeam>
<Team country='India'>
<player>Sachin</player>
<runs>100</runs>
<wicket>4</wicket>
</Team>
<Team country='Austrelia'>
<player>smith</player>
<runs>10</runs>
<wicket>1</wicket>
</Team>
</CricketTeam>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.