xml writer - support link, image.
xml writer - handle NULL string in escape_xml.