Source Code for:
" XML for B2B
VOL 1, Issue 2 p.10

<recordset rowCount="2" fieldNames="url,headline_text,source">
<field name="url">
<field name="headline_text">
<string>Cuban diplomat, expelled from US, must leave Canada</string>
<string>Sharif Lawyers to Boycott Trial</string>
<field name="source">
<string>New York Times</string>

public class Book
// These are the properties of books
public String title;
public String author;
public String isbn;

// This is how we generate XML from a book object
public void toXML(xmlOutputStream xos) { /* details */ }

// This is how we construct a book object from XML
// Think of this as a factory method
public static Book fromXML(xmlInputStream xis) { /* details */ }