JAXP Dom 案例 对xml文件进行增加 查找 删除
2015-11-29 16:51
453 查看
利用 JAXP 对 XML文件 的处理,把xml当做一个数据库来对待
View Code
public class StudentDaoImplTest { public static void main(String[] args) { StudentDao dao = new StudentDaoImpl(); // Student s = new Student(); // s.setExamid("999"); // s.setIdcard("1101"); // s.setName("牛骞"); // s.setLocation("河南"); // s.setGrade(100); // dao.addStudent(s); Student s = dao.findByExamid("999"); System.out.println(s); // boolean b = dao.delStudentByName("牛骞"); // System.out.println(b); }
View Code
相关文章推荐
- Fleet-运行一个高可用的服务
- UITableViewCell,UITableView默认选中一个单元格
- 位图法排序
- 数据结构 使用递归任意进制转换(c语言实现)
- HDU 5587 数学
- 2015年11-12
- C语言基础篇(二)
- POJ 1125 Stockbroker Grapevine 最短路folyd算法
- How to customize the console applicaton
- spring-OpenSessionInVies延长session的生命周期
- Linux内核list_head学习(二)
- php判断变量类型常用方法
- oj 1018 放苹果
- 安装eclipse for php
- [LeetCode] Sort Colors
- 1. Spring Security 4.2
- ASP_NET_MVC3_请求处理流程(1) MVC请求入口
- 【ios】AddChildViewController 实现 Pop View
- 数据结构 栈的应用任意进制转换(c语言实现)
- Go 语言Map(集合)