Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have an XML file with non unique duplicate xml elements with different values. I need these to migrated into taxonomy terms as well as nodes.
<xml>
<note></note>
<note type="admin">business</note>
<note type="admin">gender</note>
</xml>
In prepare row I get an Array.
[note] => Array
(
[0] => SimpleXMLElement Object
(
[comment] => SimpleXMLElement Object
(
)
)
[1] => business
[2] => gender
)
How do I iterate through this and return all values?
Comments
Comment #2
jeffwpetersen CreditAttribution: jeffwpetersen commentedComment #3
jeffwpetersen CreditAttribution: jeffwpetersen commentedComment #4
jeffwpetersen CreditAttribution: jeffwpetersen commentedN/A
Comment #5
jeffwpetersen CreditAttribution: jeffwpetersen commentedAnd digging in I found this...
https://www.drupal.org/node/2506701
$this->destination = new MigrateDestinationTerm('style', array('allow_duplicate_terms' => TRUE));
Which then gives me another error.
Switching this to a bug report.
Comment #6
jeffwpetersen CreditAttribution: jeffwpetersen commented