[FIX] XML Parsing, Core: correct building of namespaces. Closes #664