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

Hyperlink having xml data and save hyperlink to .xml file

$
0
0
string Url = (string)Dts.Variables["Url"].Value;
XmlDocument doc = new XmlDocument(); doc.Load(Url); //You can use a string here if you’d like…I pull from a variable for the URL
StringWriter sw = new StringWriter(); XmlTextWriter xw = new XmlTextWriter(sw);
doc.WriteTo(xw);
sw.ToString(); Dts.Variables["Xml"].Value = sw.ToString();

I found this code .http://www.mandsconsulting.com/request-xml-from-url-in-ssis-c-script-task/comment-page-1#comment-16472

The above code is not working for some reason. How do I save this ,xml file? Please help me...

Viewing all articles
Browse latest Browse all 24688

Trending Articles