I am trying to set the innerxml of a xmldoc but get the exception: Reference to undeclared entity
XmlDocument xmldoc = new XmlDocument();
string text = "Hello, I am text α – —"
xmldoc.InnerXml = "<p>" + text + "</p>";
This throws the exception:
Reference to undeclared entity 'alpha'. Line 2, position 2..
How would I go about solving this problem?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…