nsCAutoString progID = NS_ELEMENT_FACTORY_PROGID_PREFIX;
nsCAutoString progID(NS_ELEMENT_FACTORY_PROGID_PREFIX);
nsXULTemplateBuilder::GetElementFactory(PRInt32 aNameSpaceID, nsIElementFactory** aResult){  nsresult rv;  nsAutoString nameSpace;  gNameSpaceManager->GetNameSpaceURI(aNameSpaceID, nameSpace);  nsCAutoString progID = NS_ELEMENT_FACTORY_PROGID_PREFIX;  progID.AppendWithConversion(nameSpace.GetUnicode());  // Retrieve the appropriate factory.  NS_WITH_SERVICE(nsIElementFactory, elementFactory, progID, &rv);  if (!elementFactory)    elementFactory = gXMLElementFactory; // Nothing found. Use generic XML element.  *aResult = elementFactory;  NS_IF_ADDREF(*aResult);}