} else {
Document dom = (Document) args[ 0 ];
String domStr = ( (DOMImplementationLS) dom.getImplementation() ).createLSSerializer().writeToString( dom );
String encoding = ( dom.getInputEncoding() == null ) ? DEFAULT_ENCODING : dom.getInputEncoding();
byte[] data = domStr.getBytes( encoding );
return new WidgetBlob( data );
}
}
}