What is difference between XElement and XDocument?



What is difference between XElement and XDocument?..

Answer / Neha Kaushik

XDocument represents an entire XML document (including the root element), while XElement represents a single node in an XML tree. An XDocument can contain multiple XElements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is difference between linq and entity framework?

1 Answers  


Which command-line tool generates code and mapping for the LINQ to SQL component of .NET Framework?

1 Answers  


What is Object Relational Designer (O/R Designer)?

1 Answers  


What is a linqdatasource control?

1 Answers  


What are different types of operators in LINQ?

1 Answers  


What is lambda expression in linq c#?

1 Answers  


What is the linq file extension that interacts with code behind objects.

1 Answers  


What is meant by linq in c#?

1 Answers  


In LINQ, lambda expressions underlie many of the standard query operators. Is it True or False?

1 Answers  


What is the benefit of using linq on dataset?

1 Answers  


Why is linq used?

1 Answers  


What is the linq file extension that interacts with code behinds objects?

1 Answers  


Categories