public static String stRetValDes (int expVal,int actVal,String functionName,String flow,HashMap<String, String> data)
	{
		String status;
		status=null;
	    try {
	    	
	    		DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
	            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
	            Document doc = docBuilder.parse (new File(".//Data//Function.XML"));
	
	            // normalize text representation
	            doc.getDocumentElement ().normalize ();
	            NodeList functionList=doc.getElementsByTagName(functionName);
	            Element functionNode = (Element)functionList.item(0);
	            NodeList DescriptionList=functionNode.getElementsByTagName("Description");
	            Element Description = (Element)DescriptionList.item(0);
	            String Des=Description.getTextContent();
	            if (expVal==actVal){
	            	status="PASS";
	            	NodeList retValList=functionNode.getElementsByTagName("Val"+expVal);        		            	
	            	Element retVal = (Element)retValList.item(0);
	            	String retValDes=retVal.getTextContent();	            	
	            	Reporter.log("<br /><div style =\"background-color:#EDEDA9;color:green;\"><strong>"+functionName+"-"+Des+" [PASS]</strong><br />"+retValDes+"<br /><strong>Data used:</strong><br />"+data.toString()+"</div>");
	            }
	            else
	            {
	            	NodeList expValList=functionNode.getElementsByTagName("Val"+expVal);
	            	Element expValNode = (Element)expValList.item(0);
	            	NodeList actVal_List=functionNode.getElementsByTagName("Val"+actVal);
	            	Element actVal_Node = (Element)actVal_List.item(0);
	            	String expValDes=expValNode.getTextContent();
	            	String actValDes=actVal_Node.getTextContent();
	            	Reporter.log("<br /><div style =\"background-color:#EDEDA9;color:red;\"><strong>"+functionName+"-"+Des+" [FAIL]<br />"+"Expected is "+"'"+expValDes+"'"+"but in actual "+"'"+actValDes+"'"+"<br />Data used:<br />"+data.toString()+"</strong></div>");		     
	            	status="FAIL";
	            	if (flow.contains("STOP"))
	            		{
	            			String tcID[]=flow.split(",");
	            			for(int i=1;i<tcID.length;i++)
	            			{
	            				stEndResult(tcID[i], "FAIL"); 
	            				Reporter.log("<div style =\" background-color:#FDFF10;color:red;\"><strong>"+tcID[i]+"--->FAIL</strong></div>");		            		    	
	            			}
	            			assertEquals(0,1);		            		
	            		}
	            }
	            data.clear();
	            
	        }catch (SAXParseException err) {
	        System.out.println ("** Parsing error" + ", line " 
	             + err.getLineNumber () + ", uri " + err.getSystemId ());
	        

	        }catch (SAXException e) {
	        Exception x = e.getException ();
	        ((x == null) ? e : x).printStackTrace ();

	        }catch (Throwable t) {
	        t.printStackTrace ();
	        }
		return status;

	 }//end of function