The xml is available at http://thecybersoft.us/BridalExpo/Getmember.xml
XPathFactory xpathfactory = XPathFactory.newInstance();
XPath xpath = xpathfactory.newXPath();
try {
xpathexpression = xpath.compile("//@[name()='diffgr:id']");//bookstore//book
result = xpathexpression.evaluate(doc,XPathConstants.NODESET);
Log.v(result.toString(), "Value of result");
} catch (XPathExpressionException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
In above code I get node by attribute how can i get the child nodes of respective node. Also what is root node of this xml