This solves your problem for registering infopath prefixes. For example, as you did for "xsl".
nsmgr.AddNamespace("soapenv", "Here is the URL of mention at starting point in your xml file");
So it should look like this:
nsmgr.AddNamespace("soapenv", "http://schemas.xmlsoap.org/soap/envelope/");
source
share