The current MigrateXMLReader allows for attributes query /Parent/Element[@attribute=value] which is nice but reports warnings when using a non-attribute XPath, for example testing the presence of a child element, e.g. /Parent/Element[Child]

I know that you're not willing to add more effort to the MigrateXMLReader class so I attached a patch ;)
I also know that this could be done by overriding MigrateXMLReader (which I did), but it seems frequently requested (see related issues).

Thus, you can also close this right away, at least people will know how to manage that if they encounter the problem.

Comments

Status: Needs review » Needs work

The last submitted patch, 21f9a01302a03d68b23f73dca5fc3a69a68f82b4.patch, failed testing.

sebcorbin’s picture

Status: Needs work » Needs review
StatusFileSize
new3.24 KB

Missing } (trying to patch from github https://github.com/SebCorbin/migrate/pull/1)