XML(All files)

 FILE 1

<?xml version="1.0"?>

<cars>

<car> BMW </car>

<company> sdfgh </company>

</cars>

FILE 2

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE employees[

<!ELEMENT employee (firstname,lastname,email)>

<!ELEMENT firstname (#PCDATA)>

<!ELEMENT lastname (#PCDATA)>

<!ELEMENT email (#PCDATA)>

<!ELEMENT work (#PCDATA)>

<!ENTITY company "google">

]>

<employees>

 <employee>

<firstname>Dev</firstname>

<lastname>Dave</lastname>

<email>dev@gmail.com</email>

<work> &company; </work>

 </employee>

 <employee>

<firstname>Jay</firstname>

<lastname>Dave</lastname>

<email>jay@gmail.com</email>

<work> &company; </work>

 </employee>

 <employee>

<firstname>Harsh</firstname>

<lastname>Dave</lastname>

<email>Harsh@gmail.com</email>

<work> &company; </work>

  </employee>

</employees>


FILE 3

<?xml version="1.0"?>

<!DOCTYPE addressbook[

<!ELEMENT person_name (#PCDATA)>

<!ELEMENT home_address (#PCDATA)>

<!ELEMENT street (#PCDATA)>

<!ELEMENT street_name (#PCDATA)>

<!ELEMENT pin_code (#PCDATA)>

<!ELEMENT telephone_no (#PCDATA)>

<!ELEMENT email (#PCDATA)>

<!ELEMENT birthdate (#PCDATA)>

<!ELEMENT country (#PCDATA)>

<!ENTITY contry "India" >

]>

<addressbook>


<person_name> Dev </person_name>

<home_address>

<street> fancristo </street>

<street_name> hdgfhdgj </street_name>

<pin_code> 102585 </pin_code>

</home_address>

<telephone_no> 9857585685 </telephone_no>

<email> dev@gmail.com </email>

<birthdate> 17/02/8288 </birthdate>

<country> &contry; </country>


<person_name> xyz </person_name>

<home_address>

<street> jgfhdthbj </street>

<street_name> srxdctvhbkjl </street_name>

<pin_code> 7484649 </pin_code>

</home_address>

<telephone_no> 7965126874 </telephone_no>

<email> dfhjfu@gamil </email>

<birthdate> 78954158 </birthdate>

<country> &contry; </country>

</addressbook>


Comments

Popular posts from this blog

SET(A) Q1

Exercise 2

Exercise 4