Skip to content
Snippets Groups Projects

#2837684: Fixed XML elements with attributes being handled as if they have children.

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -74,7 +74,7 @@ class SimpleXml extends DataParserPluginBase {
if ($target_element !== FALSE && !is_null($target_element)) {
foreach ($this->fieldSelectors() as $field_name => $xpath) {
foreach ($target_element->xpath($xpath) as $value) {
if ($value->children() && !trim((string) $value)) {
if ($value->hasChildren() && !trim((string) $value)) {
$this->currentItem[$field_name][] = $value;
}
else {
Loading