# A)<!DOCTYPE student[<!ELEMENT student (name, marks)><!ELEMENT name (#PCDATA)><!ELEMENT marks (#PCDATA)>]><student><name>ravi</name><marks>56 </marks></student># B)?xml version="1.0"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="http://www.vbithyd.ac.in"xmlns="http://www.vbithd.ac.in"elementFormDefault="qualified"><xs:element name="employee"><xs:complexType><xs:sequence><xs:element name="firstname" type="xs:string"/><xs:element name="lastname" type="xs:string"/><xs:element name="email" type="xs:string"/></xs:sequence></xs:complexType></xs:element></xs:schema>Let's see the xml file using XML schema or XSD file.employee.xml<?xml version="1.0"?><employeexmlns="http://vbithyd.ac.in"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.vbithyd.ac.inemployee.xsd"><firstname>raviraj</firstname><lastname>Naidu</lastname><email>vimal@vbithyd.ac.in</email></employee>
<html><head> <title>Reads data from one file and write into another file in PHP</title></head><body><?php // filename to open $fname = "file1.txt"; // to open file for reading $fptr = fopen($fname, "r"); // to read content of the file $content=fread($fptr,filesize($fname)); // to open for writing $fptw = fopen("file2.txt", "w"); // to write content into another file fwrite($fptw,$content); echo "<strong>The content copied in file2 is:</strong> <br>". $content; //close files fclose($fptr); fclose($fptw);?></body></html>