public static string Get2010NamespaceURI() { return(RdlUpgrader.Get2010NamespaceURI()); }
private void UpgradeFrom200901() { XmlElement documentElement = this.m_definition.DocumentElement; string prefixOfNamespace = documentElement.GetPrefixOfNamespace("http://schemas.microsoft.com/sqlserver/reporting/2009/01/reportdefinition"); string text = this.BuildTempNamespacePrefix(prefixOfNamespace, documentElement); XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(this.m_definition.NameTable); xmlNamespaceManager.AddNamespace(text, "http://schemas.microsoft.com/sqlserver/reporting/2009/01/reportdefinition"); XmlNodeList xmlNodeList = documentElement.SelectNodes(string.Format(CultureInfo.InvariantCulture, "//{0}:Chart", text), xmlNamespaceManager); foreach (XmlNode item in xmlNodeList) { XmlNode xmlNode2 = item.SelectSingleNode(text + ":Code", xmlNamespaceManager); if (xmlNode2 != null) { item.RemoveChild(xmlNode2); } XmlNode xmlNode3 = item.SelectSingleNode(text + ":CodeLanguage", xmlNamespaceManager); if (xmlNode3 != null) { item.RemoveChild(xmlNode3); } XmlNode xmlNode4 = item.SelectSingleNode(text + ":ChartCodeParameters", xmlNamespaceManager); if (xmlNode4 != null) { item.RemoveChild(xmlNode4); } string xpath = string.Format(CultureInfo.InvariantCulture, "{0}:ChartAreas/{0}:ChartArea/*/{0}:ChartAxis/{0}:ChartStripLines/{0}:ChartStripLine", text); XmlNodeList xmlNodeList2 = item.SelectNodes(xpath, xmlNamespaceManager); foreach (XmlNode item2 in xmlNodeList2) { XmlNode xmlNode6 = item2.SelectSingleNode(text + ":TitleAngle", xmlNamespaceManager); if (xmlNode6 != null) { item2.RemoveChild(xmlNode6); } } } this.UpdateNamespaceURI(documentElement, "http://schemas.microsoft.com/sqlserver/reporting/2009/01/reportdefinition", RdlUpgrader.Get2010NamespaceURI()); }