110,502
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
<AutoRefresh>0</AutoRefresh>
<DataSources>
<DataSource Name="DS1">
<ConnectionProperties>
<DataProvider>XML</DataProvider>
<ConnectString>http://localhost/cc/template001.xml</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
<rd:SecurityType>Integrated</rd:SecurityType>
<rd:DataSourceID>8aae54a0-938f-4ad8-b472-f8d2022548e0</rd:DataSourceID>
</DataSource>
</DataSources>
XmlDocument xml = new XmlDocument();
xml.Load(Server.MapPath("~/test.xml"));
XmlNode node = xml.GetElementsByTagName("ConnectString")[0];
Response.Write(node.InnerText);