在JSP中显示XML [英] Displaying xml in jsp
本文介绍了在JSP中显示XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在一个jsp页面上显示一个包含xml格式的xml数据的字符串. 我不想解析xml,而只想在浏览器上显示xml数据.
I am trying to show a string containing xml data in xml format, on a jsp page. I do not want to parse the xml but just want to show on the browser xml data.
有人可以帮助我吗?
推荐答案
<pre>
<c:out value="${xmlString}" />
</pre>
这将漂亮地打印xml
This will pretty print the xml
这篇关于在JSP中显示XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文