// We have to do both a flush and a flushWriter here,
// because the FormatterToXML rightly does not flush
// until it get's an endDocument, which usually will
// not happen here.
fl.flush();
fl.flushWriter();
}
}
catch (Exception e2)
{
System.err.println("selectNodeList threw: " + e2.toString() + " perhaps your xpath didn't select any nodes");