*/
public Element toDsml( Element root )
{
Element element = super.toDsml( root );
CompareRequest request = ( CompareRequest ) instance;
// DN
if ( request.getEntry() != null )
{
element.addAttribute( "dn", request.getEntry().toString() );
}
// Assertion
Element assertionElement = element.addElement( "assertion");
if ( request.getAttributeDesc() != null )
{
assertionElement.addAttribute( "name", request.getAttributeDesc() );
}
if ( request.getAssertionValue() != null )
{
assertionElement.addElement( "value").setText( (String) request.getAssertionValue() );
}
return element;
}