BookVo.java

package cn.com.csuinfosoft.vo;

/**
 *
 * @author Administrator
 *
 */
public class BookVo {
 
 private String bookId;
 private String bookName;
 private String author;
 private String price;
 private String age;
 private String type;
 
 public String getBookId() {
  return bookId;
 }
 public void setBookId(String bookId) {
  this.bookId = bookId;
 }
 public String getBookName() {
  return bookName;
 }
 public void setBookName(String bookName) {
  this.bookName = bookName;
 }
 public String getAuthor() {
  return author;
 }
 public void setAuthor(String author) {
  this.author = author;
 }
 public String getPrice() {
  return price;
 }
 public void setPrice(String price) {
  this.price = price;
 }
 public String getAge() {
  return age;
 }
 public void setAge(String age) {
  this.age = age;
 }
 public String getType() {
  return type;
 }
 public void setType(String type) {
  this.type = type;
 }
 
 
}

 

 

bookinfo.xml

<?xml version="1.0" encoding="gb2312"?>

<bookinfo>
 <book id="101">
  <bookname>java编程思想</bookname>
  <author>张三</author>
  <price>90</price>
  <age>18</age>
  <type>喜剧</type>
 </book>
 <book id="102">
  <bookname>7天精通炒股</bookname>
  <author>周星星</author>
  <price>200</price>
  <age>18</age>
  <type>悲剧</type>
 </book>
 <book id="103">
  <bookname>21天精通j2ee</bookname>
  <author>张A</author>
  <price>50.5</price>
  <age>18</age>
  <type>喜剧</type>
 </book>
 <book id="104">
  <bookname>struts2应用开发</bookname>
  <author>周C</author>
  <price>40.5</price>
  <age>18</age>
  <type>喜剧</type>    
 </book>
</bookinfo>