// and use it to print what the sample received.
PurchaseOrderDocument poDoc = thisSample.parseXml(args[0]);
System.out.println("Received XML: \n\n" + poDoc.toString());
// Print the summarized items in XML based on a different schema.
PriceSummaryDocument summaryDoc = thisSample.summarizeItems(poDoc);
System.out.println("Summarized items: \n\n" + summaryDoc.toString());
// Print a simple non-XML list of items by threshold.
String sortedItems = thisSample.sortByThreshold(summaryDoc);
System.out.println("Sorted items: \n" + sortedItems);