@ Override public < T > T read ( final Class < T > projectionInterface ) throws IOException { try { Document document = projector . config ( ) . createDocumentBuilder ( ) . parse ( file ) ; return projector . projectDOMNode ( document , projectionInterface ) ; } catch ( SAXException e ) { throw new XBDocumentParsingException ( e ) ; } }
Read a XML document and return a projection to it .