Make known namespaces a non-static property in XML generator

Keeping it static doesn't make sense, because there should be just one XML
generator for every request received. It also made testing harder.