| Constructor and Description | 
|---|
| XMLWriter() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | write(Document doc,
     Writer writer)Write the Document to the provided Writer, leaving the Writer open. | 
| static void | write(Document doc,
     Writer writer,
     boolean close)Write the Document to the provided Writer, with an option to close the writer upon completion. | 
public XMLWriter()
public static void write(Document doc, Writer writer) throws XMLException
doc - the document to write.writer - the writer to write to.XMLException - if there was a problem writing the xml to the writer.public static void write(Document doc, Writer writer, boolean close) throws XMLException
doc - the document to write.writer - the writer to write to.close - true to close the writer on completion.XMLException - if there was a problem writing the xml to the writer.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.