public static function registerNamespace($prefix, $namespaceURI) { self::$_namespaces[$prefix] = $namespaceURI; }
/** * Constructor. * * @param resource|string $xml The XML document received from the server. */ public function __construct($xml) { if (is_resource($xml)) { rewind($xml); $xml = stream_get_contents($xml); } parent::registerNamespace('xlink', 'http://www.w3.org/1999/xlink'); parent::__construct($xml); }