Hibernate ORM XMLContext - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM XMLContext class.

This code example shows how to use the following methods:addDocument
		assertNotNull( "Could not load resource " + resourceName, is ); 
		return getContext( is ); 
	protected XMLContext getContext(InputStream is) throws Exception { 
		XMLContext xmlContext = new XMLContext(); 
		Document doc = new SAXReader().read( is ); 
		xmlContext.addDocument( doc ); 
		return xmlContext;