Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/*
 * Copyright (c) Fiorano Software Pte. Ltd. and affiliates. All rights reserved. http://www.fiorano.com
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

import javax.xml.parsers.DocumentBuilderFactory;

public class Main {
    /**
     * Create a document builder factory.
     *
     * @return
     */
    private static DocumentBuilderFactory getDOMFactory() {
        DocumentBuilderFactory dbf;

        try {
            dbf = DocumentBuilderFactory.newInstance();
            dbf.setNamespaceAware(true);
        } catch (Exception e) {
            dbf = null;
        }

        return dbf;
    }
}