C# XElement: Node Formatting with HTML

Posted by Arnej65 on Stack Overflow See other posts from Stack Overflow or by Arnej65
Published on 2010-04-28T19:34:32Z Indexed on 2010/04/28 19:37 UTC
Read the original article Hit count: 358

Filed under:
|
|

I'm extracting XML node from an XElement. When I use XElement.Value it strips any HTML that may be in the node.

I know that if I do XElement.ToString() I can keep the HTML, but it also gives me the node tags. Is there any way to extract the content of a Node as is without the HTML being stripped out?

Cheers.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml