Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

import javax.xml.namespace.QName;
import javax.xml.stream.XMLEventFactory;

import javax.xml.stream.events.XMLEvent;

public class Main {
    private static XMLEventFactory eventFactory = XMLEventFactory.newInstance();

    public static XMLEvent ee(String name) {
        return eventFactory.createEndElement(new QName(name), null);
    }

    public static XMLEvent ee(String namespaceURI, String name) {
        return eventFactory.createEndElement(new QName(namespaceURI, name), null);
    }
}