add html entity encoding for xml file