Commit 41e3d12a authored by ssalve's avatar ssalve

Sarita : Added set Node Value Method on 14 AUG 2019

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205177 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e129fab3
......@@ -25,7 +25,11 @@ import java.util.Calendar;
import java.util.Date;
// Modified by Vishal Thakur on 04-07-2017 [Migration from PB to JAVA for Employee Leave][Start]
import java.util.HashMap;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
......@@ -3615,5 +3619,27 @@ public class AdmCommon
return hrBackGrndJobId;
}
//Modified by Azhar on [27-July-2019][To resolve the issue of job_id][End]
//Added by sarita on setNodeValue method on 14 AUG 2019 [START]
public static void setNodeValue( Document dom, String nodeName, String nodeVal ) throws Exception
{
Node tempNode = dom.getElementsByTagName( nodeName ).item(0);
System.out.println("tempNode is ["+tempNode+"]");
if( tempNode != null )
{
if( tempNode.getFirstChild() == null )
{
CDATASection cDataSection = dom.createCDATASection( nodeVal );
tempNode.appendChild( cDataSection );
System.out.println("tempNode is 1["+tempNode+"]");
}
else
{
tempNode.getFirstChild().setNodeValue(nodeVal);
System.out.println("tempNode is 2["+tempNode+"]");
}
}
tempNode = null;
}//End of Method setNodeValue
//Added by sarita on setNodeValue method on 14 AUG 2019 [END]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment