Friday, November 2, 2012

Read an XML


import lrapi.lr;

public class Actions
{

    String xmlStr = null;

    String finalFileName = null;

public int init() throws Throwable {
return 0;
}//end of init


public int action() throws Throwable {

            xmlStr = lr.read_xml("Created_MCO_Connect.xml");

   finalFileName=xmlStr.replace("SUNILOZZIE", "<name>");

   System.out.println("XML: " + finalFileName);

   finalFileName = null;

   xmlStr = null;

return 0;
}//end of action


public int end() throws Throwable {
return 0;
}//end of end
}

No comments:

Post a Comment