On retrieval, the value of the attribute is returned as a string. Character and general entity references are replaced with
their values.
On setting, this creates a Text node with the unparsed contents of the string. I.e. any characters that an XML processor would recognize as markup are instead
treated as literal text.