question: public static PrintData parseXML ( Properties ctx , File input ) { log . config ( input . toString ( ) ) ; PrintData pd = null ; try { PrintDataHandler handler = new PrintDataHandler ( ctx ) ; SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; SAXParser parser = factory . newSAXParser ( ) ; parser . parse ( input , handler ) ; pd = handler . getPrintData ( ) ; } catch ( Exception e ) { log . log ( Level . SEVERE , "" , e ) ; } return pd ; }
target:  Create PrintData from XML