Use print_to_string to dump node content