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...
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...