Automatic import of classifications

Hey, thanks for the script @Alfons1Qvor12 . However I seem to be having an issue: the script runs fine and generates pp_classified.xml, but I’m getting and error when trying to open it in PP:

pp_error

And that part of the XML looks like this:

Any ideas on what could be happenning? Thanks!