public ActionResult Buscar(string Nombre) { string Path = Server.MapPath("~/App_Data/ListaArtistas.xml"); if(Nombre != null){ // Retrieve XML document string Url = "http://ws.spotify.com/search/1/artist?q=" + Nombre; XmlDocument myXMLDocument = new XmlDocument(); myXMLDocument.Load(Url); myXMLDocument.Save(Path); } XMLReader readXML = new XMLReader(); var data = readXML.RetrunListaArtistas(Path); return View(data.ToList()); }