Here you can find the source of writeFooter(XMLStreamWriter w)
public static void writeFooter(XMLStreamWriter w) throws XMLStreamException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; public class Main { public static void writeFooter(XMLStreamWriter w) throws XMLStreamException { w.writeEndElement(); // Folder w.writeEndElement(); // Document w.writeEndElement(); // kml }//from w w w.j av a2s . c o m }