Java tutorial
//package com.java2s; //License from project: Open Source License import javax.xml.namespace.QName; import javax.xml.stream.XMLEventFactory; import javax.xml.stream.events.EndElement; public class Main { private static XMLEventFactory eventFactory = XMLEventFactory.newInstance(); public static EndElement ee(String name) { return eventFactory.createEndElement(new QName(name), null); } }