I got the o/p after use below code:
i have done the mistake in getElementsByTagName...
Now i have changed the tag like:
NodeList nl = doc.getElementsByTagName(KEY_PNAME);
Now i have to run the output means am getting the attribute value well...