class XmlToDataSQL extends AbstractHandler
A Class that is used to parse an data dump XML file and create SQL using a DataSQLBuilder class.
Constants
DEBUG |
Flag for enabing debug output to aid in parser tracing. |
Properties
ExpatParser | $parser | Expat Parser. |
Methods
__construct(Database $database, GeneratorConfig $config, string $encoding = 'iso-8859-1')
Construct new XmlToDataSQL class. |
||
transform(PhingFile $xmlFile, Writer $out)
Transform the data dump input file into SQL and writes it to the output stream. |
||
startElement($name, $attributes)
Handles opening elements of the xml file. |
||
endElement($name $name)
Handles closing elements of the xml file. |
Details
at line 99
public
__construct(Database $database, GeneratorConfig $config, string $encoding = 'iso-8859-1')
Construct new XmlToDataSQL class.
This class is passed the Database object so that it knows what to expect from
the XML file.
at line 112
public
transform(PhingFile $xmlFile, Writer $out)
Transform the data dump input file into SQL and writes it to the output stream.
at line 145
public
startElement($name, $attributes)
Handles opening elements of the xml file.
at line 200
public
endElement($name $name)
Handles closing elements of the xml file.