Mega Code Archive

 
Categories / C# / XML LINQ
 

XElement Value gets or sets the concatenated text contents of this element

using System; using System.Linq; using System.Xml.Linq; using System.Collections; using System.Collections.Generic; public class MainClass{    public static void Main(){         XElement el = XElement.Parse("<Root>This is <b>mixed</b> content</Root>");         Console.WriteLine("{0}", el.Value);    } }