PicoFeed\Parser\Parser::registerSupportedNamespaces PHP Метод

registerSupportedNamespaces() публичный Метод

Register all supported namespaces to be used within an xpath query.
public registerSupportedNamespaces ( SimpleXMLElement $xml ) : SimpleXMLElement
$xml SimpleXMLElement Feed xml
Результат SimpleXMLElement
    public function registerSupportedNamespaces(SimpleXMLElement $xml)
    {
        foreach ($this->namespaces as $prefix => $ns) {
            $xml->registerXPathNamespace($prefix, $ns);
        }
        return $xml;
    }