Home > DeveloperSection > Interviews > Difference between XElement and XDocument

Posted on    July-26-2011 9:44 AM

 C# C# 
 1 Answer(s)
  2270  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Posted on    July-26-2011 12:00 AM

Both are the classes defined by System.Xml.Linq namespace

XElement class represents an XML fragment
XDocument class represents an entire XML document with all associated meta-data.

Don't want to miss updates? Please click the below button!

Follow MindStick