如何在SSRS中查询XML数据源,以便返回两个父子层次结构?
例如
<parent>
<child1>
<child2>
<child3>
<a1>1</a1>
<b1>2</b1>
</child3>
<child4>
<c1>1</c1>
<d1>2</d1>
</child4>
</child2>
</child1>
</parent>
最佳答案
以下示例应为您提供所需的结果:
<Query>
<ElementPath IgnoreNamespaces="True">
parent{}/child1{}/child2{child3 {a1,b1}, child4{c1,d1}}
</ElementPath>
</Query>
https://stackoverflow.com/questions/11108741/