Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Help! How to read data from a simple xml in SSIS package? XSLT?

$
0
0

sorry, but I haven't had much contact with XML before and it's quite urgent now. 

All I need to do is be able to retrieve 2 values from an XML file: ExcludeOutputFile and XmlOutputFile. In the current XML file they would be:

\\srvdcfp001\DarwinUAT\darlib\798\aig_excluded_invoices_2016_07_26_15_14_49_664.pdf
\\srvdcfp001\DarwinUAT\darlib\798\aig_invoices_2016_07_26_15_14_49_227.xml

<?xml version="1.0" encoding="utf-16"?><ExtractResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ExcludeOutputFile xmlns="http://schemas.datacontract.org/2004/07/CL.Darwin.BillingService.Model">\\srvdcfp001\DarwinUAT\darlib\798\aig_excluded_invoices_2016_07_26_15_14_49_664.pdf</ExcludeOutputFile><XmlOutputFile xmlns="http://schemas.datacontract.org/2004/07/CL.Darwin.BillingService.Model">\\srvdcfp001\DarwinUAT\darlib\798\aig_invoices_2016_07_26_15_14_49_227.xml</XmlOutputFile></ExtractResponse>

I don't have any more information about the xml file (e.g xsd,..)

What I have found is that there is an "XML Task" in SSIS (I'm using 2008 R2), but it requires an XSLT. I tried to compose it using a simple example but no luck. I would like to save those 2 values into SSIS variables.

Can anybody please produce the XSLT or tell me exactly what to do to achieve this? 

I'd be super grateful!




Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>