SSRS报告基于xml数据

时间:2015-02-11 17:03:13

标签: sql xml pdf reporting-services

我在研究中提到了以下链接 Create Microsoft SQL Report (SSRS) based on XML data stored in database

如果我在示例中使用xml作为上面的链接(创建数据集并使用数据源作为xml数据源,并在文本命令中复制文本),它可以工作,但它不适用于格式如下的xml。

<Query>
<XmlData>
<?xml version="1.0" encoding="utf-16"?>
<ConfigurationData 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>MIT 3</Name>
<Description>MIT Uni 3</Description>
<RunLocation>5</RunLocation>
<NamingConvention />
<PollingPeriod>-1</PollingPeriod>
<SetLocationAtRuntime>false</SetLocationAtRuntime>
</XmlData>
</Query>

如果我删除顶部(如下所示),那么我只能看到第一个字段&#34; Name&#34;在数据集字段中。我想看看所有领域。

<Query>
<XmlData>
<?xml version="1.0" encoding="utf-16"?>
<Name>MIT 3</Name>
<Description>MIT Uni 3</Description>
<RunLocation>5</RunLocation>
<NamingConvention />
<PollingPeriod>-1</PollingPeriod>
<SetLocationAtRuntime>false</SetLocationAtRuntime>
</XmlData>
</Query>

0 个答案:

没有答案