Handle cases where a node may have multiple text nodes for xml over tcp protocol