106107108109110111112113114
} protected XMLContext getContext(InputStream is) throws Exception { XMLContext xmlContext = new XMLContext(); Document doc = new SAXReader().read( is ); xmlContext.addDocument( doc ); return xmlContext; } }
463464465466467468469470471
} if ( errors.size() > 0 ) { System.out.println( errors.get( 0 ) ); } assertEquals( 0, errors.size() ); context.addDocument( doc ); return context; } }
4849505152535455
catch (IOException ioe) { //log.warn( "Could not close input stream", ioe ); } } assertEquals( 0, errors.size() ); context.addDocument( doc ); } }
426427428429430431432433434
} if (errors.size() > 0) { System.out.println( errors.get( 0 ) ); } assertEquals( 0, errors.size() ); context.addDocument( doc ); return context; } }
4748495051525354
428429430431432433434435436