java解析XML修改特定项的值然后保存xml文件,求高手帮忙 急需 在线等

[复制链接]
查看11 | 回复2 | 2013-2-28 10:58:19 | 显示全部楼层 |阅读模式
import java.io.File;import java.io.FileInputStream;import java.io.FileWriter;import java.util.List;import org.dom4j.Document;import org.dom4j.Element;import org.dom4j.io.SAXReader;import org.dom4j.io.XMLWriter;public static void main(String[] args) throws Exception {
SAXReader sax = new SAXReader(); ...
回复

使用道具 举报

千问 | 2013-2-28 10:58:19 | 显示全部楼层
可以直接在HibernateSessionFactory中设置configuration.configure(configFile);configuration.setProperty("hibernate.connection.url",“你的url”);configuration.setProperty("hibernate.co...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行