I have a code in which I access an XML file and take the data there. I need to make sure that he finds it for me by the name of the document and I can contact him. On Java.
I’m trying to find the xml “forest_monsters.xml” in fragment.
String LocateNow = "forest"
int res = getResources().getIdentifier(LocateNow+"_monsters", "id", getActivity().getPackageName());
XmlPullParser parser = getResources().getXml(res);
New contributor
Kayter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.