private InputStream getInputStream ( String publicid , String systemid ) throws IOException , SAXException { URL basis = new URL ( "file" , "" , System . getProperty ( "user.dir" ) + "/." ) ; URL url = new URL ( basis , systemid ) ; URLConnection c = url . openConnection ( ) ; return c . getInputStream ( ) ; }
Get an InputStream based on a publicid and a systemid