public Document parseURL(String xmlURL, String refType, String bibcode) 
     {
         DocumentBuilder docBuilder;
         Document doc = null;
         DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         docBuilderFactory.setIgnoringElementContentWhitespace(true);
         
         try {
             docBuilder = docBuilderFactory.newDocumentBuilder();
         }
         catch (ParserConfigurationException e) {
             System.out.println("Wrong parser configuration: " + e.getMessage());
             return null;
         }
         
         try {
             doc = docBuilder.parse(xmlURL);
         }
         catch (SAXException e) {
             //System.out.println("Wrong XML file structure: " + e.getMessage());
             //==== The XML didn't parse correctly, report this
             this.allPapers = new Vector();
             this.currentPaper = new Paper(refType, e.getMessage());
             this.allPapers.add(this.currentPaper);     
             this.papersFound = false;
         }
         catch (IOException e) {
             //System.out.println("Could not read source file: " + e.getMessage());
             if (refType.equals("FOCUS"))
             {
                //==== the paper wasn't found, report this
                this.allPapers = new Vector();
                this.currentPaper = new Paper(bibcode, false);
                this.allPapers.add(this.currentPaper);     
                this.papersFound = false;                 
             }
             else
             {
                //==== No list results were found, report this
                this.allPapers = new Vector();
                this.allPapers.add(this.currentPaper);     
                this.papersFound = false;
             }
         }
         return doc;
     }  //end parseURL