PHP Extension
PHP Extension
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$success = false;
$xml = new CkXml();
// Pass either an absolute file path, or a file path relative from the current working directory of the caller.
$success = $xml->LoadXmlFile('qa_data/hamlet.xml');
if ($success == false) {
print $xml->lastErrorText() . "\n";
exit;
}
print 'Success.' . "\n";
?>