I have an XML that contains attribute strings containing escaped characters such as <
.
After reading such a file with XDocument
and accessing the attribute content using .Value
, all such escaped characters get decoded. .Value
will return a string containing <
, not <
.
Is there a way of keeping the raw text contained in the XML strings, not decoding them?