社区
XML/XSL
帖子详情
怎么输出org.w3c.dom.Document对象到文件?
zhou7707
2006-04-21 05:31:11
用JAVA怎么输出org.w3c.dom.Document对象到文件?
JDOM和DOM4J都提供了将Document对象输出到文件的方法,
org.w3c.dom.Document怎么没有呀?
郁闷死了
...全文
269
1
打赏
收藏
怎么输出org.w3c.dom.Document对象到文件?
用JAVA怎么输出org.w3c.dom.Document对象到文件? JDOM和DOM4J都提供了将Document对象输出到文件的方法, org.w3c.dom.Document怎么没有呀? 郁闷死了
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
cds27
2006-04-23
打赏
举报
回复
参考这里:http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=123&threadID=31163&messageID=184947
w3c
-
dom
.jar 包
w3c
-
dom
.jar 包
dom
解析xml使用 包 免积分下载
如何将
document
转为字符串_
org
.
w3c
.
dom
.
Document
对象
与字符串互转
由于项目需要,需要我在现有的框架... 通过JDK自带的类把
org
.
w3c
.
dom
.
Document
转化为字符串。然后再用
文件
输出
流
输出
,或者直接将ByteArrayOutputStream内存流换成
输出
流。/*** XML
org
.
w3c
.
dom
.
Document
转 String*...
org
.
w3c
.
dom
.
Document
对象
与
org
.
dom
4j.
Document
对象
互相转换
*
org
.
w3c
.
dom
.
Document
->
org
.
dom
4j.
Document
* @param doc
Document
(
org
.
w3c
.
dom
.
Document
) * @return
Document
*/ public static
Document
parse(
org
.
w3c
.
dom
.
Document
doc) throws Exception ....
org
.
w3c
.
dom
.
Document
与
org
.
dom
4j.
Document
之间的转换
*
org
.
w3c
.
dom
.
Document
->
org
.
dom
4j.
Document
* @param doc
Document
(
org
.
w3c
.
dom
.
Document
) * @return
Document
*/ public static
org
.
dom
4j.
Document
parse(
org
.
w3c
.
dom
.Doc...
org
.
w3c
.
dom
.
Document
与
org
.
dom
4j.
document
的转换
org
.
w3c
.
dom
.
Document
与
org
.
dom
4j.
document
的转换 工作中用到了,发现网上这样的例子还是很多的,自己也收藏一个! /** *
org
.
w3c
.
dom
.
Document
->
org
.
dom
4j.
Document
* @param doc
Document
(
org
.w3...
XML/XSL
8,906
社区成员
22,678
社区内容
发帖
与我相关
我的任务
XML/XSL
XML/XSL相关问题讨论专区
复制链接
扫一扫
分享
社区描述
XML/XSL相关问题讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章