Here you can find the source of printElementEnd(Element elem, StringWriter sw)
Parameter | Description |
---|---|
elem | the element in question |
static void printElementEnd(Element elem, StringWriter sw)
//package com.java2s; //License from project: Open Source License import java.io.StringWriter; import org.w3c.dom.Element; public class Main { /**//from w w w . j a v a2 s . c o m * Print an element's end-code to the current buffer * @param elem the element in question */ static void printElementEnd(Element elem, StringWriter sw) { if (elem.getFirstChild() != null) { sw.write("</"); sw.write(elem.getNodeName()); sw.write(">"); } } }