Source for file convert-xrdjrd.php
Documentation is available at convert-xrdjrd.php
* Convert a XRD file to JRD or vice versa.
echo " Usage: $argv[0] path/to/file.(xrd|jrd)\n";
require_once 'XML/XRD.php';
require_once 'XML/XRD/Loader.php';
$type = $xl->detectTypeFromFile ($file);
$xrd->loadFile ($file, $type);
$targetType = $type == 'xml' ? 'json' : 'xml';
echo $xrd->to ($targetType);
echo 'Converting (X|J)RD file failed: ' . $e->getMessage () . "\n";
Documentation generated on Mon, 11 Mar 2019 15:57:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|