Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1094
  • Last Modified:

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).
0
midfde
Asked:
midfde
  • 2
1 Solution
 
midfdeAuthor Commented:
Got it.
Console.WriteLine("(4)" + WebUtility.HtmlDecode(xEl.ToString()))

Open in new window

0
 
midfdeAuthor Commented:
Old kind ASP programming helps.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now