loadFromFile(collection, temp, docName);
loadFromFile(collection, temp, docName, binary);
	private void loadFromURI(Collection collection, URI uri, String docName) throws XPathException {		if("file".equals(uri.getScheme())) {			String path = uri.getPath();			File file = new File(path);			if(!file.canRead())				throw new XPathException(getASTNode(), "Cannot read path: " + path);			loadFromFile(collection, file, docName);		} else {			try {				File temp = File.createTempFile("exist", ".xml");				temp.deleteOnExit();				OutputStream os = new FileOutputStream(temp);				InputStream is = uri.toURL().openStream();				byte[] data = new byte[1024];				int read = 0;				while((read = is.read(data)) > -1) {					os.write(data, 0, read);				}				is.close();				loadFromFile(collection, temp, docName);				temp.delete();			} catch (MalformedURLException e) {				throw new XPathException(getASTNode(), "Malformed URL: " + uri.toString(), e);			} catch (IOException e) {				throw new XPathException(getASTNode(), "IOException while reading from URL: " +						uri.toString(), e);			}		}	}