This will take the three pre-defined entities in XML 1.0 ('<', '>',
and '&' - used specifically in XML elements) as well as CR/NL and
Quote characters which require escaping inside Attribute values and
convert their character representation to the appropriate entity
reference suitable for XML attribute content.