Q: How to read data from an xml file in xml folder of resources, in Android application?
A: Use XMLResource parser to read the resource file, and parse it.
Description:
For pulling data from an XML file which is stored in xml folder or resources, then we have to use XMLResourceParser.
XmlResourceParser xp = getResources().getXml(R.xml.myfile);