2
問題を解決するには?どんな助け?アンドロイド:MalformedURLException:プロトコルが見つかりません
ERROR : java.net.MalformedURLException: Protocol not found: /mnt/sdcard/EREADER/NewForestPonies/OEBPS/content.opf
コード:
//Getting the xhtml file names
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
String
Document doc = db.parse(new InputSource(Environment.getExternalStorageDirectory()+"/EREADER/"+book_name+"/OEBPS/content.opf")); //ERROR HERE
doc.getDocumentElement().normalize();
..........
......
EDIT:SAXパーサーの :?
DataSaxHandler myXMLHandler = new DataSaxHandler();
xr.setContentHandler(myXMLHandler);
xr.parse(new InputSource(Paths.getBookStorePath()+bookname+"/OEBPS/content.opf"));
それは私のために働いた...どうもありがとうございました...しかし、私は私が使用SAX PARSER PLS SEE EDIT – vnshetty
FOR同じ問題を抱えているが、 XMLReader型のメソッド解析(InputSource)は引数(File)には適用されません – vnshetty
SAX Parserの完全なコードを投稿できますか? – user370305