webservice04#对象与xml转换-jaxb#Stax解析xml#新建修改xml
摘要:
1,Student类package com.yangw.xml;import javax.xml.bind.annotation.XmlRootElement;@XmlRootElement //作为根节点的元素需要设置这个注解public class Student { private int id; private String name; private int age; private Classroom classroom; public Student(int id, String name, int age, Classroom cl... 阅读全文
posted @ 2014-02-25 16:27 梦相随1006 阅读(420) 评论(0) 推荐(0) 编辑