Print each document node instead of printing together