I am parsing the xml but i can't parse the xml tags which are within and another tags. Here is the XML structure.
<Entry>
<MediaID>434234242342</MediaID>
<MediaName>Brazil</MediaName>
<PhoneNo>
<Ip>23232323232</Ip>
<Ip>32323232323</Ip>
<Ip>323232323232</Ip>
</PhoneNo>
</Entry>
Here is the Java code. I m successfully parsing MediaID and MediaName but how can I parse the tags within
Document doc = parser.getDomElement(return_string); // getting DOM element
NodeList nl2 = doc.getElementsByTagName("Entry");
for (int i = 0; i < nl2.getLength(); i++) {
Element e = (Element) nl2.item(i);
media_name = parser.getValue(e,"MediaName");
mediaID = parser.getValue(e,"MediaID");
phoneNo = parser.getValue(e,"PhoneNo"); //it is not working
}