Java XML DocumentBuilder Create newDocumentBuilderFactory()

Here you can find the source of newDocumentBuilderFactory()

Description

new Document Builder Factory

License

Open Source License

Declaration

public static DocumentBuilderFactory newDocumentBuilderFactory() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.xml.parsers.DocumentBuilderFactory;

public class Main {

    public static DocumentBuilderFactory newDocumentBuilderFactory() {
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        dbf.setNamespaceAware(true);//from  w w  w. j  av  a 2 s  .  c om
        return dbf;
    }
}

Related

  1. newDocumentBuilder(Boolean disallowDoctypeDecl)
  2. newDocumentBuilder(boolean ignoreWhitespace, boolean ignoreComment)
  3. newDocumentBuilder(boolean nsAware, boolean validating)
  4. newDocumentBuilder(Schema schema, boolean isNamespaceAware, boolean isXIncludeAware)
  5. newDocumentBuilderFactory()
  6. newDocumentBuilderFactory()