Login   Register  
PHP Classes
elePHPant
Icontem

File: xml.example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Richard Heyes  >  XML Db Schema Interpreter  >  xml.example.php  >  Download  
File: xml.example.php
Role: ???
Content type: text/plain
Description: An example script utilising the class.
Class: XML Db Schema Interpreter
Interprets database schemas written in XML
Author: By
Last change:
Date: 2000-08-13 09:35
Size: 751 bytes
 

Contents

Class file image Download
<?php
/***************************************
** Title........: Exmaple for XML DB Interpreter
** Filename.....: xml.example.php
** Author.......: Richard Heyes
** Version......:
** Notes........:
** Last changed.: 07/08/2000
** Last change..:
***************************************/

        include('class.xml.db.interpreter.inc');

/***************************************
** Begin
***************************************/
        $xml = new xml_dbas();
        $xml->set_schema('xml.schema.xml', TRUE);
        $xml->parse_schema();
        $xml->create_dbas('localhost', 'richard', '95219430450');

        header('Content-Type: text/plain');
        print_r($xml->get_sql());
        print_r($xml->get_sql_errors());
?>