+ -
当前位置:首页 → 问答吧 → 急~帮我看看这个Xpath写的对不对?立刻结贴

急~帮我看看这个Xpath写的对不对?立刻结贴

时间:2010-12-15

来源:互联网

XML code

<?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>



我想获取<ConnectString>http://localhost:8080/cc/text.xml</ConnectString>这个节点
我写的这个xpath对不对啊?怎么一直获取不到?
/Report/DataSources/DataSource/ConnectionProperties/ConnectString

作者: zjj1211   发布时间: 2010-12-15

.//ConnectString

作者: liuhuang007   发布时间: 2010-12-15

引用 1 楼 liuhuang007 的回复:

.//ConnectString
哥们不行啊

作者: zjj1211   发布时间: 2010-12-15