I just want to parse a XML next to my java file or in the res/xml folder.
I read lots of post an blogs but it just get more confusing!everyone just call the parse function with an URL!like this
Document doc = db.parse(new InputSource(url.openStream()));
I have this part of code and I don’t know how to make it work.
Document doc = db.parse("What Should I pass here");
I tried R.xml.books it’s an Integer and this function wants an Inputstream how should I use this R.xml.books ??
Try openRawResource.
Your question is very difficult to understand. Good English and lots of descriptive info go a long way towards getting answers 🙂