public static String getOAIdcx(String oai_url, Logger log) 
    throws MalformedURLException
    {

        String buffer="";
        URL url = new URL(oai_url);

        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
            String readin; 
            Boolean go=false;
            
            while ((readin = in.readLine()) != null) {
                for (String str: readin.split(">")) {
                    
                    if (str.replaceAll(" ","").startsWith("</srw")) {
                        go=false;
                    }
                    if (go) {
                        buffer=buffer+str+">"; 
                    }
                    if (str.replaceAll(" ","").startsWith("<srw")) {
                        go=true;
                    }
                }
            }
            
        } catch (MalformedURLException e) {}
          catch (IOException e) {}
       
        return((buffer));
    }