<?php require_once( "table_class.php" ); // loads the xml and build an object representation $tb = new XMLTableExtract(); $xmltable = $tb->load_xml( $argv[1] ); // with the object representation, builds the php class $cm = new XMLClassMaker(); $cm->build( $xmltable, $argv[2] ); ?>