Quantcast
Channel: XML to string (C#) - Stack Overflow
Browsing all 4 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

XML 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
Browsing all 4 articles
Browse latest View live


Latest Images