Encode XML special characters when setting element content

Previously setting element content like "Barnes & Noble" would result in error.
So I added appropriate encoding using @xmlEncodeSpecialChars@