通过 HTTP 输出 Java DOM
不久前,我发现了一种通过 HTTP 连接从 Servlet 发送 XML 文档的 DOM 表示形式的方法。 AFAIK 为此需要 DOM 3 LS (LoadStore),但 StackOverflow 上显示如何执行此操作的线程似乎已经消失。
谁能告诉我该怎么做吗?
Not so long ago I found a way of sending a DOM representation of an XML document out over an HTTP connection from a Servlet. AFAIK the DOM 3 LS (LoadStore) is needed for this, but the thread on StackOverflow showing how to do it seems to have disappeared.
Can anyone please show me how to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 JAXP:
您可能想使用 JAX RS(从未使用过):
Use JAXP:
You might want to use JAX RS instead (never used it):