excel 2013中的filterxml函数返回#value!错误

时间:2013-11-16 06:50:30

标签: xml xpath

使用filterxml函数在excel 2013中过滤时,下面的XML会返回错误值 我在filterxml函数中指定的xpath是= FILTERXML(A3,“// DataSet / diffgr:diffgram / NewDataSet / Rates / Display”)。我需要帮助弄清楚我做错了什么。谢谢。

<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">

  <xs:complexType>

    <xs:choice minOccurs="0" maxOccurs="unbounded">

      <xs:element name="Rates">

        <xs:complexType>

          <xs:sequence>

            <xs:element name="Quote" type="xs:string" minOccurs="0" />

            <xs:element name="Display" type="xs:string" minOccurs="0" />

            <xs:element name="UpdateTime" type="xs:dateTime" minOccurs="0" />

          </xs:sequence>

        </xs:complexType>

      </xs:element>

    </xs:choice>

  </xs:complexType>

</xs:element>

<NewDataSet xmlns="">

  <Rates diffgr:id="Rates1" msdata:rowOrder="0">

    <Quote>AUD/CAD</Quote>

    <Display>0.97544/94</Display>

    <UpdateTime>2013-11-13T00:19:26.307-05:00</UpdateTime>

  </Rates>

  <Rates diffgr:id="Rates2" msdata:rowOrder="1">

    <Quote>AUD/CHF</Quote>

    <Display>0.85280/30</Display>

    <UpdateTime>2013-11-13T00:19:11.182-05:00</UpdateTime>

  </Rates>

  <Rates diffgr:id="Rates3" msdata:rowOrder="2">

    <Quote>AUD/JPY</Quote>

    <Display>92.540/70</Display>

    <UpdateTime>2013-11-13T00:19:26.307-05:00</UpdateTime>

  </Rates>

  <Rates diffgr:id="Rates4" msdata:rowOrder="3">

    <Quote>AUD/NZD</Quote>

    <Display>1.13019/79</Display>

    <UpdateTime>2013-11-13T00:19:10.838-05:00</UpdateTime>

  </Rates>

</NewDataSet>

0 个答案:

没有答案