Code example for DocumentBuilderFactory

Methods: setNamespaceAware

0
     * Constructor creates the SAXBuilder. 
     */ 
    public FreemarkerXmlTask() 
    { 
        builderFactory = DocumentBuilderFactory.newInstance();
        builderFactory.setNamespaceAware(true);
    } 
 
    /** 
     * Set the base directory. Defaults to <tt>.</tt> 
     */ 
    public void setBasedir(File dir)
    { 
        baseDir = dir;
    } 
 
    /** 
     * Set the destination directory into which the generated 
     * files should be copied to 
     * @param dir the name of the destination directory 
     */