Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import javax.xml.parsers.DocumentBuilderFactory;

public class Main {
    public static DocumentBuilderFactory getDBF() {
        DocumentBuilderFactory fac = getDBF(true);
        return fac;

    }

    public static DocumentBuilderFactory getDBF(boolean namespaceaware) {
        DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();
        fac.setValidating(false);
        fac.setNamespaceAware(namespaceaware);
        fac.setXIncludeAware(true);

        return fac;
    }
}