What is difference between XElement.Load() and XDocument.Load()?



What is difference between XElement.Load() and XDocument.Load()?..

Answer / Aakash Agrawal

XElement.Load() loads an XML from a stream or file into an XElement instance, while XDocument.Load() loads the XML into an XDocument instance which includes the root element.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is Language Integrated Query (LINQ)?

1 Answers  


Is not supported in linq to entities?

1 Answers  


What is first in linq?

1 Answers  


What is the difference between first () and firstordefault () select methods in linq?

1 Answers  


In Linq Query why from clause come first as select statment ?

1 Answers   MCN Solutions,


What is difference between linq and sql entity framework?

1 Answers  


What is difference among Single, SingleOrDefault, First and FirstOrDefault?

1 Answers  


What is meant by linq in c#?

1 Answers  


Elaborate the plinq?

1 Answers  


Which is faster linq or lambda?

1 Answers  


How to convert linq query to list?

1 Answers  


How to use GroupBy in LINQ?

1 Answers  


Categories