* @throws IOException
*/
public static String getXml( Message msg, ValueFactory vf ) throws IOException
{
StringWriter sw = new StringWriter();
TaggedDataOutput tdo = new XmlTaggedDataOutput( sw, vf );
tdo.writeMessage( msg, null );
return sw.toString();
}