PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Amit Yadav  >  CSV2XML  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: CSV2XML
Generate XML documents from data of CSV files
Author: By
Last change: Including the class file
Date: 5 years ago
Size: 533 bytes


Class file image Download
This PHP file illustrates how to use the CSV2XML class to convert the CSV file to an XML.

//Create the instance of the class
$csv2xml = new csv2xml();

//Set the root node for the XML

// Set the recurring node for the XML

//Provide the CSV filemname
$csv2xml->setCSVFile("USPresident Wikipedia URLs Thmbs HS.csv");

//Convert the file