If you show the entire tag tree for the item you find in your alert, you can see if the data gets duplicated (same tag order) or this text simply occurs more than you thought (same text, different tags).
in the XML file the ghost products don't have a parent tag. I have no idea why I get it in this loop.
If I add this tags with any input I don't get this problem... Is it possible to check this or is it impossible without filled tags from XML file?
Got the same issue if the XML file has included the tags, if they are empty the import is wrong..
If the empty tag exist like this <parent/> the problem still is there..
There was a wrong XML import setting.
It has to be removeUnmatchedExisting = true;