预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共13页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

HYPERLINK"http://www.blogjava.net/sxyx2008"http://www.blogjava.net/sxyx2008 /NUMPAGES13 Sax、pull方式解析Xml sax方式解析xml xml文件: <?xmlversion="1.0"encoding="UTF-8"?> <root> <studentid="1"group="1"> <name>张三</name> <sex>男</sex> <age>18</age> <email>zhangsan@163.com</email> <birthday>1987-06-08</birthday> <memo>好学生</memo> </student> <studentid="2"group="2"> <name>李四</name> <sex>女</sex> <age>18</age> <email>lisi@163.com</email> <birthday>1987-06-08</birthday> <memo>好学生</memo> </student> <studentid="3"group="3"> <name>小王</name> <sex>男</sex> <age>18</age> <email>xiaowang@163.com</email> <birthday>1987-06-08</birthday> <memo>好学生</memo> </student> <studentid="4"group="4"> <name>小张</name> <sex>男</sex> <age>18</age> <email>xiaozhang@163.com</email> <birthday>1987-06-08</birthday> <memo>好学生</memo> </student> <studentid="5"group="5"> <name>小明</name> <sex>男</sex> <age>18</age> <email>xiaoming@163.com</email> <birthday>1987-06-08</birthday> <memo>好学生</memo> </student> </root>Xml对应的实体bean packagecom.parsexml.entity; publicclassStudent{ privateintid; privateintgroup; privateStringname; privateStringsex; privateintage; privateStringemail; privateStringmemo; privateStringbirthday; publicintgetId(){ returnid; } publicvoidsetId(intid){ this.id=id; } publicintgetGroup(){ returngroup; } publicvoidsetGroup(intgroup){ this.group=group; } publicStringgetName(){ returnname; } publicvoidsetName(Stringname){ this.name=name; } publicStringgetSex(){ returnsex; } publicvoidsetSex(Stringsex){ this.sex=sex; } publicintgetAge(){ returnage; } publicvoidsetAge(intage){ this.age=age; } publicStringgetEmail(){ returnemail; } publicvoidsetEmail(Stringemail){ this.email=email; } publicStringgetMemo(){ returnmemo; } publicvoidsetMemo(Stringmemo){ this.memo=memo; } publicStringgetBirthday(){ returnbirthday; } publicvoidsetBirthday(Stringbirthday){ this.bir