public string Strip(string text) { return Regex.Replace(text, @"<(.|\n)*?>", string.Empty); }
XElement xmlScan = XElement.Parse(e.Result); listBox1.ItemsSource = from channel in xmlScan.Descendants("item") select new ScanItem { title = channel.Element "title").Value, description = "Position: " + channel.Element("description").Value };
Strip
description = "Position: " + channel.Element("description").Value
description = "Position: " + Strip(channel.Element("description").Value)
TreeView
ListBox
System.Xml.XmlReader
System.Xml.Linq
System.Xml.Linq.XDocument
XElement
System.Xml.XmlDocument
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)