Answer by Marc-Olivier Méthé for XML to string (C#)
You can load your XML into an XmlDocument and then use XPath to Get the value of each node you're targeting. XmlDocument doc = new XmlDocument(); doc.LoadXml(reply); XmlNodeList nodes =...
View ArticleAnswer by reckface for XML to string (C#)
var xml= XElement.Parse(reply);label1.Text = string.Join(Environment.NewLine, xml.Descendants().Where (x => !string.IsNullOrEmpty(x.Value)).Select(x=> string.Format("{0}: {1}", x.Name,...
View ArticleAnswer by NonStatic for XML to string (C#)
You probably need to parse the RSS XML manually to get the title. Here is some sample code for your reference:private static List<FeedsItem> ParseFeeds(string feedsXml){ XDocument xDoc =...
View ArticleXML to string (C#)
I have a XML loaded from a URL like this:WebClient client = new WebClient();client.Encoding = Encoding.UTF8;try{ string reply = client.DownloadString("http://Example.com/somefile.xml"); label1.Text =...
View Article