Code example for XMLContext

Methods: addDocument

0
		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; 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE