You are here

protected function MigrateItemXML::loadXmlUrl in Migrate 7.2

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

Loads the XML.

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.)

Parameters

string $item_url: URL to the XML file

Return value

SimpleXMLElement Loaded XML

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 267
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);
}