*/
public Element toDsml( Element root )
{
Element element = super.toDsml( root );
ExtendedRequest request = ( ExtendedRequest ) instance;
// Request Name
if ( request.getRequestName() != null )
{
element.addElement( "requestName" ).setText( request.getRequestName() );
}
// Request Value
Namespace xsdNamespace = new Namespace( "xsd", ParserUtils.XML_SCHEMA_URI );
Namespace xsiNamespace = new Namespace( "xsi", ParserUtils.XML_SCHEMA_INSTANCE_URI );
element.getDocument().getRootElement().add( xsdNamespace );
element.getDocument().getRootElement().add( xsiNamespace );
Element valueElement = element.addElement( "requestValue" ).addText(
ParserUtils.base64Encode( request.getRequestValue() ) );
valueElement
.addAttribute( new QName( "type", xsiNamespace ), "xsd:" + ParserUtils.BASE64BINARY );
return element;
}