8,906
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting">
<Width>5in</Width>
<AutoRefresh>0</AutoRefresh>
<DataSources>
<DataSource Name="DataSource122">
<ConnectionProperties>
<DataProvider>XML</DataProvider>
<ConnectString>http://localhost:8080/cc/text.xml</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
<rd:SecurityType>Integrated</rd:SecurityType>
<rd:DataSourceID>a471bb3f-ebe3-4f59-b085-a52e03a04507</rd:DataSourceID>
</DataSource>
</DataSources>
</Report>
XmlDocument doc = new XmlDocument();
doc.Load("Test.xml");
XmlElement root = doc.DocumentElement;
XmlNamespaceManager xnm = new XmlNamespaceManager(doc.NameTable);
xnm.AddNamespace(string.Empty, "http://schemas.microsoft.com/sqlserver/reporting/2008");
XmlNode node = root.SelectSingleNode(".//ConnectString", xnm);