I have an XML file /res/raw/myxml.xml
I want to parse it with DOM Parser
I used this documentation but my problem how to read this XML file in local
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = mcontext.getResources(R.raw.myxml);
doc.getDocumentElement().normalize();
I have an error in this line Document doc = mcontext.getResources(R.raw.myxml); in mcontext the error message is mcontext cannot be resolved
I want to parse this document with DOM not with SAX
I try the SAX Parser but with it i have a problem with execution of an XPATH query, for this I changed the parser