in util/src/main/java/org/apache/jsieve/util/XmlOut.java [558:578]
public void closeElement() throws IOException {
if (elementNames.isEmpty()) {
if (elementsWritten) {
throw new OperationNotAllowedException("Root element has already been closed.");
} else {
throw new OperationNotAllowedException("Close called before an element has been opened.");
}
}
final CharSequence elementName = elementNames.pop();
if (inElement) {
writer.write('/');
writer.write('>');
} else {
writer.write('<');
writer.write('/');
rawWrite(elementName);
writer.write('>');
}
writer.flush();
inElement = false;
}