You are here

protected function MigrateItemXML::loadXmlUrl in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/xml.inc \MigrateItemXML::loadXmlUrl()

Default XML loader - just use Simplexml directly. This can be overridden for preprocessing of XML (removal of unwanted elements, caching of XML if the source service is slow, etc.)

1 call to MigrateItemXML::loadXmlUrl()
MigrateItemXML::getItem in plugins/sources/xml.inc
Implementors are expected to return an object representing a source item.

File

plugins/sources/xml.inc, line 180
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 loadXmlUrl($item_url) {
  return simplexml_load_file($item_url);
}