Bug fix: localized variable names in parsexml

Previouly tried to use same names as some other scripts, then unset
them at the end, causing problems.