Parse namespace prefixes and register them for XPath queries [Fixes #44265555]