public void writeXml ( String path , XMLOutputter doc ) throws IOException { doc . startTag ( RemoteException . class . getSimpleName ( ) ) ; doc . attribute ( "path" , path ) ; doc . attribute ( "class" , getClassName ( ) ) ; String msg = getLocalizedMessage ( ) ; int i = msg . indexOf ( "\n" ) ; if ( i >= 0 ) { msg = msg . substring ( 0 , i ) ; } doc . attribute ( "message" , msg . substring ( msg . indexOf ( ":" ) + 1 ) . trim ( ) ) ; doc . endTag ( ) ; }
Write the object to XML format