How does Linq to XML XElement to string conversion work?

What is the idea that is sitting behind XDocument to string conversion, the one that I do not understand? Please see the attached image.
Thanks.ee.pngIn other words, what is the best way to output XElement's underlying XML with its XML Entities decoded (if printable, or at least pre-defined).
LVL 1
midfdeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
midfdeConnect With a Mentor Author Commented:
Got it.
Console.WriteLine("(4)" + WebUtility.HtmlDecode(xEl.ToString()))

Open in new window

0
 
midfdeAuthor Commented:
Old kind ASP programming helps.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.