Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import javax.xml.xpath.XPath;

import javax.xml.xpath.XPathFactory;

public class Main {
    private static XPath xpath = null;

    private static XPath getXPath() {
        if (xpath == null) {
            xpath = XPathFactory.newInstance().newXPath();
        }
        return xpath;
    }
}