protected function MigrateSourceXML::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 MigrateSourceXML::registerNamespaces()
- MigrateSourceXML::getNextRow in plugins/
sources/ xml.inc - Implementation of MigrationSource::getNextRow().
File
- plugins/
sources/ xml.inc, line 1241 - Support for migration from XML sources.
Class
- MigrateSourceXML
- Implementation of MigrateSource, to handle imports from XML files.
Code
protected function registerNamespaces(SimpleXMLElement &$xml) {
foreach ($this->namespaces as $prefix => $namespace) {
$xml
->registerXPathNamespace($prefix, $namespace);
}
}