Add assocArrayToXML, string_return_between functions

Signed-off-by: Yi-Feng Tzeng <yftzeng@gmail.com>