throws IOException
{
m_document.setContext( m_context );
CustomXMLOutputProcessor processor = new CustomXMLOutputProcessor();
XMLOutputter output = new XMLOutputter(processor);
StringWriter out = new StringWriter();
Format fmt = Format.getRawFormat();
fmt.setExpandEmptyElements( false );
fmt.setLineSeparator( LINEBREAK );
output.setFormat( fmt );
output.outputElementContent( m_document.getRootElement(), out );
String result = out.toString();
return result;
}