if ( paramsNodeList.getLength() == 0 ) { return; }
  public static void decode( final String xmlToDecode, StringBuffer methodName, Vector arguments )  {    try    {      Document doc = docBuilder.parse( new java.io.ByteArrayInputStream( xmlToDecode.getBytes() ) );      // should only be one methodname tag      // get our method name      NodeList methodNameList = doc.getElementsByTagName( "methodName" );      if ( methodNameList.getLength() != 1 )      {        throw new Exception( "Invalid XML-RPC");      }          methodName.append( methodNameList.item( 0 ).getFirstChild().getNodeValue() );              NodeList paramsNodeList = doc.getElementsByTagName( "params" );      if ( paramsNodeList.getLength() != 1 )      {        throw new Exception( "Invalid XML-RPC");      }            NodeList paramNodeList = paramsNodeList.item(0).getChildNodes();      for ( int paramIndex = 0; paramIndex < paramNodeList.getLength(); paramIndex++ )      {        Node param = paramNodeList.item( paramIndex );        if ( !param.getNodeName().contentEquals( "param" ) || ( param.getChildNodes().getLength() != 1 ) )        {          throw new Exception( "Invalid XML-RPC");        }                Node valueNode = param.getFirstChild();        arguments.add( decodeArg( valueNode ) );      }    }    catch ( Exception e )    {      System.out.println( "Error: " + e );    }  }