implemented xml to tcp string functionality