Code example for DocumentBuilderFactory

Methods: newDocumentBuilder, setNamespaceAware

0
			if (!Init.isInitialized()) { 
				Init.init(); 
			} 
	 
			dbf = DocumentBuilderFactory.newInstance();
			dbf.setNamespaceAware(true);
	 
			docBuilder = dbf.newDocumentBuilder();
	 
			domImpl = new DOMImplementationImpl();
	 
			serializer = domImpl.createLSSerializer();
			DOMConfiguration config = serializer.getDomConfig();
			config.setParameter("comments", Boolean.valueOf(true));
		} catch (Exception e) {
			Log.e(TAG, "Failed to initialize", e);
			throw new DigSigException(e);
		} 
	} 
 
	private void doSign(Intent intent) {