2013-06-10 6 views

답변

3

는이 같은 것을 사용할 수 있습니다

public static string DownloadString(string address) 
{ 
    string text; 
    using (var client = new WebClient()) 
    { 
     text = client.DownloadString(address); 
    } 
    return text; 
} 

private static void Main(string[] args) 
{  
    var xml = DownloadString(@"http://www.ploscompbiol.org/article/fetchObjectAttachment.action?uri=info%3Adoi%2F10.1371%2Fjournal.pcbi.1002244&representation=XML");    
    File.WriteAllText("blah.xml", xml); 
} 
+0

감사합니다 키스, 잘 작동합니다 (... 내가 사용하고 URL을 참고). –

관련 문제