/** * Register all namespaces on an element that have been declared on the * document * * TODO: we should probably do this by examining $this->namespaces */ public function registerXpathNamespaces(SimpleXMLElement $element) { $element->registerXpathNamespace('a', PluginImportLeap::NS_ATOM); $element->registerXpathNamespace('rdf', PluginImportLeap::NS_RDF); $element->registerXpathNamespace('mahara', PluginImportLeap::NS_MAHARA); }