i am new to work on xml.i have used an xml file as follows:
- -
use
if (child.getNodeName().equals("Ans") && child.getTextContent().equals("wallstreet?"))
as your if condition.