private void SetRootParams(XDocument doc, AssembleContentsController cnt)
        {
            var root = doc.Root;

            if (root != null)
            {
                var attr = root.Attribute("namespace");
                if (attr != null)
                {
                    cnt.NameSpace = attr.Value;
                }

                root.SetAttributeValue("siteId", Controller.SiteId.ToString(CultureInfo.InvariantCulture));
                root.SetAttributeValue("forStage", (!Controller.IsLive).ToString().ToLower());
                SetDefaultClass(root);
                SetConnectionString(root);
            }
        }
 public XmlPreprocessor(AssembleContentsController caller, bool inMemory)
 {
     Controller = caller;
     InMemory   = inMemory;
 }