From 96a714c47aa4c74cf81efcc9c18406901b5b43fd Mon Sep 17 00:00:00 2001 From: mikeryan <mikeryan@4420.no-reply.drupal.org> Date: Sun, 29 May 2016 15:08:20 -0500 Subject: [PATCH] Issue #2736119 by mikeryan: Xml parser misses namespaced elements --- src/Plugin/migrate_plus/data_parser/Xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/migrate_plus/data_parser/Xml.php b/src/Plugin/migrate_plus/data_parser/Xml.php index a60d6df4..152fcb1e 100644 --- a/src/Plugin/migrate_plus/data_parser/Xml.php +++ b/src/Plugin/migrate_plus/data_parser/Xml.php @@ -222,7 +222,7 @@ class Xml extends DataParserPluginBase implements ContainerFactoryPluginInterfac // If we've found the desired element, populate the currentItem and // currentId with its data. - if ($target_element) { + if ($target_element !== FALSE && !is_null($target_element)) { foreach ($this->fieldSelectors() as $field_name => $xpath) { foreach ($target_element->xpath($xpath) as $value) { $this->currentItem[$field_name][] = (string) $value; -- GitLab