Location: PHPKode > scripts > MySQL DB Schema to XML and XML to Schema > mysql-db-schema-to-xml-and-xml-to-schema/example.php
<?php
// to export schema in xml file

	include('mysql_db_schema_2_xml.php');
	$obj_schema = new mysql_db_schema_2_xml("temp2",$db_conn);
	//$obj_schema = new mysql_db_schema_2_xml("temp2",null,"localhost","root","");
	//provide full file path and flag to either download it to your local system
	$obj_schema->generateXMLSchema($mFileName,true))){

//to import the exported xml schema
	include_once("mysql_db_xml_2_schema.htm");
	$obj_schema = new mysql_db_xml_2_schema($xml_file,"temp2",$db_conn);
	//$obj_schema = new mysql_db_xml_2_schema($xml_file,"temp2",null,"localhost","root","");
	$log = $obj_schema->XML2Schema();
echo $log;


?>
Return current item: MySQL DB Schema to XML and XML to Schema