【问题标题】:SSRS XML Data Source How do I query XML with multiple parent child hierarchySSRS XML 数据源如何查询具有多个父子层次结构的 XML
【发布时间】:2012-06-19 20:18:25
【问题描述】:

如何在 SSRS 中查询 XML 数据源,以便返回两个父子层次结构? 例如

<parent>
    <child1>
        <child2>
            <child3>
                <a1>1</a1>
                <b1>2</b1>
            </child3>
            <child4>
                <c1>1</c1>
                <d1>2</d1>
            </child4>
        </child2>
    </child1>
</parent>

如何查询此 XML 以获得 a1,b1,c1,d1 作为结果集?

【问题讨论】:

  • 你有没有得到这个答案?

标签: reporting-services xmldatasource


【解决方案1】:

以下示例应为您提供您正在寻找的结果:

<Query>
<ElementPath IgnoreNamespaces="True">
parent{}/child1{}/child2{child3 {a1,b1}, child4{c1,d1}}
</ElementPath>
</Query>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-21
    • 2021-09-29
    • 1970-01-01
    相关资源
    最近更新 更多