XObject xo = new XObject();
// Create a new hastable to store into vector
Hashtable table = new Hashtable();
// Retrieve the next node
XMLResource resource = (XMLResource) results.nextResource();
Node originalnode = resource.getContentAsDOM();
// Get the document key for this node for later use
String dockey = resource.getDocumentId();
table.put("dockey", dockey);
// Use Xalan xpath parser to extract data, store into hastable
xo = XPathAPI.eval(originalnode, "/person/fname");
table.put("fname", xo.toString());