Loading an XRD file
XRD .xml
files may be loaded directly from a
file,
or from a
string:
Loading an XRD file
<?php
try {
$xrd->loadFile('/path/to/the/file.xrd');
} catch (XML_XRD_Exception $e) {
die('Loading XRD file failed: ' . $e->getMessage() . "\n");
}
?>
Loading an XRD string
<?php
try {
$xrd->loadString($fullXrdXmlHere);
} catch (XML_XRD_Exception $e) {
die('Loading XRD failed: ' . $e->getMessage() . "\n");
}
?>