protected function MigrateItemXML::registerNamespaces in Migrate 7.2
Explicitly register namespaces on an XML element.
Parameters
SimpleXMLElement $xml: A SimpleXMLElement to register the namespaces on.
1 call to MigrateItemXML::registerNamespaces()
- MigrateItemXML::getItem in plugins/
sources/ xml.inc - Implementors are expected to return an object representing a source item.
File
- plugins/
sources/ xml.inc, line 195 - Support for migration from XML sources.
Class
- MigrateItemXML
- Implementation of MigrateItem, for retrieving a parsed XML document given an ID provided by a MigrateList class.
Code
protected function registerNamespaces(SimpleXMLElement &$xml) {
foreach ($this->namespaces as $prefix => $namespace) {
$xml
->registerXPathNamespace($prefix, $namespace);
}
}