Java Code Examples for org.dom4j.Element.write()

The following are Jave code examples for showing how to use write() of the org.dom4j.Element class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: directory-ldap-api   File:   View Source Code Vote up 5 votes
 * Writes the response to the writer of the underlying output stream
 * @param respWriter The writer used to write the response
 * @param respDsml The decorator containing the response
 * @throws IOException If we had an error while writing the DSML response
protected void writeResponse( BufferedWriter respWriter, DsmlDecorator<?> respDsml ) throws IOException
    if ( respWriter != null )
        Element xml = respDsml.toDsml( null );
        xml.write( respWriter );