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.
In the XML parser, which is based on XMLReader thus does not have the full context of the XML source available for retrieval via xpath, there's some limited support for reaching outside of the current item via parentXpathCache and parentElementsOfInterest. This is not currently working - getAncestorElements() is where the magic should be happening, but nothing calls it. We need to fix this...
Comment | File | Size | Author |
---|---|---|---|
#6 | migrate_plus-fix-parent-elements-2742233-5.patch | 1.97 KB | megadesk3000 |
#2 | migrate_plus-fix-parent-elements-2742233-1.patch | 1 KB | patrick_durold |
Comments
Comment #2
patrick_duroldI've stumbled onto this problem today while working with migrate_source_xml and patched that module. Seeing as the source code here is basically still the same, I suppose the patch will still work, though I couldn't really test it.
Comment #3
mikeryanComment #4
megadesk3000 CreditAttribution: megadesk3000 at Unic commentedHi
I tested patricks patch, and it did not totally solve the problem in my opinion.
Additionally we need to change
with
Comment #6
megadesk3000 CreditAttribution: megadesk3000 at Unic commentedSorry, had wrong patch format.
Comment #7
mikeryanComment #9
mikeryanCommitted, thanks!