#!/usr/bin/env php getConfigItem('aggregators'); $aConfig = $aggregators->getConfigItem($id, NULL); if ($aConfig === NULL) { fwrite(STDERR, 'No aggregator with id ' . var_export($id, TRUE) . " found.\n"); exit(1); } $aggregator = new sspmod_aggregator_Aggregator($gConfig, $aConfig, $id); $xml = $aggregator->getMetadataDocument(); echo($xml->saveXML());