@ NotNull public static DocumentBuilder createDocumentBuilder ( ) { try { final DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( true ) ; return factory . newDocumentBuilder ( ) ; } catch ( final ParserConfigurationException ex ) { throw new RuntimeException ( "Couldn't create document builder" , ex ) ; } }
Creates a namespace aware document builder .