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

The following examples show how to use org.dom4j.Element#write() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: directory-ldap-api   File: Dsmlv2Engine.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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 );
    }
}