public void demoReadPrune() {
try {
File inputFile = new File("xml/jaxb/primer.xml");
JAXBReader jaxbReader = new JAXBReader("org.dom4j.test.primer");
System.out
.println("Fetched PurchaseOrders using JAXBObjectHandler:");
jaxbReader.setPruneElements(true);
jaxbReader.addObjectHandler("/purchaseOrders/purchaseOrder",
new PurchaseOrderHandler());
Document doc = jaxbReader.read(inputFile);
System.out.println("Pruned document:");
System.out.println(doc.asXML());
System.out.println();
} catch (Exception e) {