Android XML Document Factory Create CreateDocumentBuilderFactory()

Here you can find the source of CreateDocumentBuilderFactory()

Description

Create Document Builder Factory

Declaration

private static DocumentBuilderFactory CreateDocumentBuilderFactory() 

Method Source Code

//package com.java2s;

import javax.xml.parsers.DocumentBuilderFactory;

public class Main {
    private static DocumentBuilderFactory CreateDocumentBuilderFactory() {
        DocumentBuilderFactory factory = DocumentBuilderFactory
                .newInstance();/*from  w ww .  j  a  v a  2s  .  c o m*/
        // need to set this to true so that getLocalName and getNamespaceURI function correctly
        factory.setNamespaceAware(true);
        return factory;
    }
}

Related

  1. getDocumentBuilderFactory()
  2. getDocumentBuilderFactory()
  3. getDocumentBuilderFactory()
  4. getDocumentBuilder()
  5. getDocumentBuilder()