public static XMLGrammarPool getGrammarPool ( ) { XMLGrammarPool pool = grammarPool . get ( ) ; if ( pool == null ) { try { pool = new XMLGrammarPoolImplUtils ( ) ; grammarPool . set ( pool ) ; } catch ( final Exception e ) { System . out . println ( "Failed to create Xerces grammar pool for caching DTDs and schemas" ) ; } } return pool ; }
Get grammar pool