<string name="item_first1">MENU</string>
Currently name can be fetched. How do I get the word "Menu" from this string.xml file?
My sources are:
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(xml.url);
NodeList tagList = doc.getElementsByTagName("string");
for(int i = 0; i < tagList.getLength(); ++i) {
String name = tagList.item(i).getAttributes().getNamedItem("name").getNodeValue();
}
} catch (Exception e) {
e.printStackTrace();
}`