I have xml like this
<root>
<text>My test is 5 > 2 & 10 < 12</text>
</root>
When I convert it to xElement
var xe = XElement.Parse(xml);
I get errors
If xml contents & so I get this error «An error occurred while parsing EntityName»
If xml contents > so I get this error «Name cannot begin with the '<' character, hexadecimal value 0x3C.»