Reference to undeclared entity exception while working with XML
In .Net, you can use the System.Xml.XmlConvert
class:
string text = XmlConvert.EncodeName("Hello α");
Alternatively, you can declare the entities locally by putting the declarations between square brackets in a DOCTYPE declaration. Add the following header to your xml:
<!DOCTYPE documentElement[<!ENTITY Alpha "Α"><!ENTITY ndash "–"><!ENTITY mdash "—">]>
Do a google on "html character entities" for the entity definitions.