Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / October 2006

Tip: Looking for answers? Try searching our database.

Querying XML containing <![CDATA[ elements

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin - 31 Oct 2006 15:38 GMT
Anyone know a way around this one?

I needed to get XML data from a web service. The web service (which I can't
change) outputs some of the elements as CDATA. Doesn't look like the XML data
provider included in RS2005 can handle these. Thinking it might be a problem
with the web service I created this quick test:

Create an empty XML Data Source (i.e. with an empty Connection String).

Put this into the query and it will return the values:

<Query>
<XmlData>

<Simple>
   <SomeInfo>Hello</SomeInfo>
   <SomeInfo>World</SomeInfo>
</Simple>

</XmlData>

</Query>

However, put this in and it doesn't work:

<Query>
<XmlData>

<Simple>
   <SomeInfo><![CDATA[Hello]]></SomeInfo>
   <SomeInfo><![CDATA[World]]></SomeInfo>
</Simple>

</XmlData>

</Query>

Annoying....
aaron.kempf@gmail.com - 31 Oct 2006 22:13 GMT
can't you stick a XSLT/XSL on the url and you'd be done?

> Anyone know a way around this one?
>
[quoted text clipped - 34 lines]
>
> Annoying....
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.