Going back to Listing 14, after we create the XML document as a string, we set the response header for the content type and send the XML string back to requester.
返回到清单14,在将XML文档创建为字符串后,设置内容类型的响应头部并将XML字符串发送回给请求者。
Or you can pass any other type of object, which is converted to a string and becomes the text content of the element.
也可以传递任何其他类型的对象,该对象将转换为字符串并成为该元素的文本内容。
应用推荐